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:
parent
4c8341d080
commit
00a7c48d6e
8 changed files with 263 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue