startup: Direct primary CPU RVBAR entry to m1n1 main

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 <marcan@marcan.st>
This commit is contained in:
Hector Martin 2023-04-19 02:42:32 +09:00
parent 06b732e788
commit bd63b119ec

View file

@ -117,5 +117,9 @@ void _cpu_reset_c(void *stack)
printf(" CPU: %s\n", type);
exception_initialize();
if (mrs(MPIDR_EL1) & 0xffffff)
smp_secondary_entry();
else
m1n1_main();
}