Advertisement
Guest User

Untitled

a guest
Feb 15th, 2022
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. diff --git a/src/smp.c b/src/smp.c
  2. index 324a8aaa05ea..0b5ca4f8e950 100644
  3. --- a/src/smp.c
  4. +++ b/src/smp.c
  5. @@ -150,6 +150,7 @@ void smp_start_secondaries(void)
  6. cpu_nodes[cpu_id] = node;
  7. }
  8.  
  9. + int this_cpu = 1;
  10. for (int i = 1; i < MAX_CPUS; i++) {
  11. int node = cpu_nodes[i];
  12.  
  13. @@ -163,7 +164,8 @@ void smp_start_secondaries(void)
  14. if (ADT_GETPROP_ARRAY(adt, node, "cpu-impl-reg", cpu_impl_reg) < 0)
  15. continue;
  16.  
  17. - smp_start_cpu(i, reg >> 8, reg & 0xff, cpu_impl_reg[0], pmgr_reg + CPU_START_OFF);
  18. + smp_start_cpu(this_cpu, reg >> 8, reg & 0xff, cpu_impl_reg[0], pmgr_reg + CPU_START_OFF);
  19. + this_cpu++;
  20. }
  21.  
  22. spin_table[0].mpidr = mrs(MPIDR_EL1) & 0xFFFFFF;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement