mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Kernel: Add x2APIC support
This allows addressing all cores on more modern processors. For now, we still have a hardcoded limit of 64 due to s_processors being a static array.
This commit is contained in:
parent
123087e235
commit
8a258edfd6
Notes:
sideshowbarker
2024-07-18 04:45:21 +09:00
Author: https://github.com/tomuta
Commit: 8a258edfd6
Pull-request: https://github.com/SerenityOS/serenity/pull/9797
5 changed files with 108 additions and 48 deletions
|
@ -582,6 +582,11 @@ ProcessorContainer& Processor::processors()
|
|||
return s_processors;
|
||||
}
|
||||
|
||||
Processor& Processor::by_id(u32 id)
|
||||
{
|
||||
return *s_processors[id];
|
||||
}
|
||||
|
||||
void Processor::enter_trap(TrapFrame& trap, bool raise_irq)
|
||||
{
|
||||
VERIFY_INTERRUPTS_DISABLED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue