1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 17:15:08 +00: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
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) {