Skip to content

Commit bd63b11

Browse files
committed
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>
1 parent 06b732e commit bd63b11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/startup.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,9 @@ void _cpu_reset_c(void *stack)
117117
printf(" CPU: %s\n", type);
118118

119119
exception_initialize();
120-
smp_secondary_entry();
120+
121+
if (mrs(MPIDR_EL1) & 0xffffff)
122+
smp_secondary_entry();
123+
else
124+
m1n1_main();
121125
}

0 commit comments

Comments
 (0)