smp: Handle IRQ enable reg properly (maybe)

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-11-01 21:00:26 +09:00
parent 87613dc208
commit e99138710a

View file

@ -85,7 +85,7 @@ static void smp_start_cpu(int index, int cluster, int core, u64 rvbar, u64 cpu_s
// Some kind of system level startup/status bit
// Without this, IRQs don't work
write32(cpu_start_base + 0x4, 1 << index);
write32(cpu_start_base + 0x4, 1 << (4 * cluster + core));
// Actually start the core
write32(cpu_start_base + 0x8 + 4 * cluster, 1 << core);