mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:55:10 +00:00
Kernel: Add SMP IPI support
We can now properly initialize all processors without crashing by sending SMP IPI messages to synchronize memory between processors. We now initialize the APs once we have the scheduler running. This is so that we can process IPI messages from the other cores. Also rework interrupt handling a bit so that it's more of a 1:1 mapping. We need to allocate non-sharable interrupts for IPIs. This also fixes the occasional hang/crash because all CPUs now synchronize memory with each other.
This commit is contained in:
parent
dec27e5e6f
commit
bc107d0b33
27 changed files with 1236 additions and 627 deletions
|
@ -47,7 +47,7 @@ static Access::Type detect_optimal_access_type(bool mmio_allowed)
|
|||
return Access::Type::IO;
|
||||
|
||||
klog() << "No PCI bus access method detected!";
|
||||
hang();
|
||||
Processor::halt();
|
||||
}
|
||||
|
||||
void initialize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue