dpcpu_init should have also passed in the calculated cpuid, not the
devicetree ID. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
08c8d10cf3
commit
920c8a57c0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user