Kernel: Detect APs and boot them into protected mode

This isn't fully working, the APs pretend like they're
fully initialized and are just halted permanently for now.
This commit is contained in:
Tom 2020-06-04 09:10:16 -06:00 committed by Andreas Kling
commit 0bc92c259d
Notes: sideshowbarker 2024-07-19 05:50:00 +09:00
9 changed files with 463 additions and 108 deletions

View file

@ -297,7 +297,7 @@ void IOAPIC::eoi(const GenericInterruptHandler& handler) const
ASSERT(!is_hard_disabled());
ASSERT(handler.interrupt_number() >= gsi_base() && handler.interrupt_number() < interrupt_vectors_count());
ASSERT(handler.type() != HandlerType::SpuriousInterruptHandler);
APIC::eoi();
APIC::the().eoi();
}
u16 IOAPIC::get_isr() const