aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/arm64/mp_machdep.c
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2016-11-29 13:32:23 +0000
committerAndrew Turner <andrew@FreeBSD.org>2016-11-29 13:32:23 +0000
commit323057e8af247ca09cd8d82d06600f60095839af (patch)
tree041d8720c8acefe6c4136ba1af1447a07e7dd899 /sys/arm64/arm64/mp_machdep.c
parent9aaefb2c53cf31f2fd616a9031a58d0d79da7ac7 (diff)
downloadsrc-323057e8af247ca09cd8d82d06600f60095839af.tar.gz
src-323057e8af247ca09cd8d82d06600f60095839af.zip
We only use the cpu0 variable in the FDT code.
Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=309296
Diffstat (limited to 'sys/arm64/arm64/mp_machdep.c')
-rw-r--r--sys/arm64/arm64/mp_machdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c
index 512c69164e68..a1081c390090 100644
--- a/sys/arm64/arm64/mp_machdep.c
+++ b/sys/arm64/arm64/mp_machdep.c
@@ -106,12 +106,14 @@ struct pcb stoppcbs[MAXCPU];
static device_t cpu_list[MAXCPU];
+#ifdef FDT
/*
* Not all systems boot from the first CPU in the device tree. To work around
* this we need to find which CPU we have booted from so when we later
* enable the secondary CPUs we skip this one.
*/
static int cpu0 = -1;
+#endif
void mpentry(unsigned long cpuid);
void init_secondary(uint64_t);