aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/arm64/mp_machdep.c
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2016-05-31 19:17:32 +0000
committerAndrew Turner <andrew@FreeBSD.org>2016-05-31 19:17:32 +0000
commit920c8a57c0c87a87e689892459d988b9f4f583cd (patch)
tree50c953492cc86f22797e49052f2994a2dfc04a12 /sys/arm64/arm64/mp_machdep.c
parent08c8d10cf34b0b4a2ce3317ad0b00c4310116db1 (diff)
downloadsrc-920c8a57c0c87a87e689892459d988b9f4f583cd.tar.gz
src-920c8a57c0c87a87e689892459d988b9f4f583cd.zip
dpcpu_init should have also passed in the calculated cpuid, not the
devicetree ID. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=301072
Diffstat (limited to 'sys/arm64/arm64/mp_machdep.c')
-rw-r--r--sys/arm64/arm64/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c
index 1bc85514ac6d..ee0524470f4c 100644
--- a/sys/arm64/arm64/mp_machdep.c
+++ b/sys/arm64/arm64/mp_machdep.c
@@ -522,7 +522,7 @@ cpu_init_fdt(u_int id, phandle_t node, u_int addr_size, pcell_t *reg)
dpcpu[cpuid - 1] = (void *)kmem_malloc(kernel_arena, DPCPU_SIZE,
M_WAITOK | M_ZERO);
- dpcpu_init(dpcpu[cpuid - 1], id);
+ dpcpu_init(dpcpu[cpuid - 1], cpuid);
target_cpu = reg[0];
if (addr_size == 2) {