Skip to content

Commit

Permalink
startup: Direct primary CPU RVBAR entry to m1n1 main
Browse files Browse the repository at this point in the history
This definitely isn't going to work yet, but it's better than ending up
in the secondary loop if it ever works.

Signed-off-by: Hector Martin <[email protected]>
  • Loading branch information
marcan committed Apr 18, 2023
1 parent 06b732e commit bd63b11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,9 @@ void _cpu_reset_c(void *stack)
printf(" CPU: %s\n", type);

exception_initialize();
smp_secondary_entry();

if (mrs(MPIDR_EL1) & 0xffffff)
smp_secondary_entry();
else
m1n1_main();
}

0 comments on commit bd63b11

Please sign in to comment.