1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

APIC: Enable APIC and start APs

This commit is contained in:
Tom 2019-10-16 10:27:00 -06:00 committed by Andreas Kling
parent 4c8341d080
commit 00a7c48d6e
Notes: sideshowbarker 2024-07-19 11:40:38 +09:00
8 changed files with 263 additions and 2 deletions

View file

@ -6,6 +6,7 @@
#include "kstdio.h"
#include <AK/Types.h>
#include <Kernel/Arch/i386/CPU.h>
#include <Kernel/Arch/i386/APIC.h>
#include <Kernel/Arch/i386/PIC.h>
#include <Kernel/Arch/i386/PIT.h>
#include <Kernel/CMOS.h>
@ -241,6 +242,10 @@ extern "C" [[noreturn]] void init()
kprintf("Starting Serenity Operating System...\n");
MemoryManager::initialize();
if (APIC::init())
APIC::enable(0);
PIT::initialize();
PCI::enumerate_all([](const PCI::Address& address, PCI::ID id) {