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:
parent
4c8341d080
commit
00a7c48d6e
Notes:
sideshowbarker
2024-07-19 11:40:38 +09:00
Author: https://github.com/tomuta
Commit: 00a7c48d6e
Pull-request: https://github.com/SerenityOS/serenity/pull/668
Reviewed-by: https://github.com/awesomekling
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