diff options
author | andrew <andrew@FreeBSD.org> | 2016-05-31 19:17:32 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-05-31 19:17:32 +0000 |
commit | 9d76db4d3787237edd12f62ae8cbe5ad3f836dd8 (patch) | |
tree | 50c953492cc86f22797e49052f2994a2dfc04a12 /sys/arm64 | |
parent | 48fcb266bac1a97ab51ac13dd6eff5987d6f9238 (diff) | |
download | FreeBSD-src-9d76db4d3787237edd12f62ae8cbe5ad3f836dd8.zip FreeBSD-src-9d76db4d3787237edd12f62ae8cbe5ad3f836dd8.tar.gz |
dpcpu_init should have also passed in the calculated cpuid, not the
devicetree ID.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/mp_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c index 1bc8551..ee05244 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) { |