Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/smp.c b/src/smp.c
- index 324a8aaa05ea..0b5ca4f8e950 100644
- --- a/src/smp.c
- +++ b/src/smp.c
- @@ -150,6 +150,7 @@ void smp_start_secondaries(void)
- cpu_nodes[cpu_id] = node;
- }
- + int this_cpu = 1;
- for (int i = 1; i < MAX_CPUS; i++) {
- int node = cpu_nodes[i];
- @@ -163,7 +164,8 @@ void smp_start_secondaries(void)
- if (ADT_GETPROP_ARRAY(adt, node, "cpu-impl-reg", cpu_impl_reg) < 0)
- continue;
- - smp_start_cpu(i, reg >> 8, reg & 0xff, cpu_impl_reg[0], pmgr_reg + CPU_START_OFF);
- + smp_start_cpu(this_cpu, reg >> 8, reg & 0xff, cpu_impl_reg[0], pmgr_reg + CPU_START_OFF);
- + this_cpu++;
- }
- spin_table[0].mpidr = mrs(MPIDR_EL1) & 0xFFFFFF;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement