FIXED THE APIC HELL YEAH
This commit is contained in:
+7
-6
@@ -22,6 +22,7 @@ use core::arch::asm;
|
||||
use limine::BaseRevision;
|
||||
use x86_64::VirtAddr;
|
||||
use arch::x86_64::memory::allocation::page_alloc::FoundryOSFrameAllocator;
|
||||
use crate::arch::x86_64::cpu::apic::enable_apic;
|
||||
|
||||
pub mod arch;
|
||||
pub mod resources;
|
||||
@@ -99,17 +100,17 @@ pub fn boot() -> Result<(), &'static str> {
|
||||
}
|
||||
println_log!("[Success]");
|
||||
|
||||
print_log!(" Enabling PICs... ");
|
||||
interrupts::enable_pic();
|
||||
println_log!("[Success]");
|
||||
// print_log!(" Enabling PICs... ");
|
||||
// interrupts::enable_pic();
|
||||
// println_log!("[Success]");
|
||||
|
||||
// print_log!(" Disabling PICs... ");
|
||||
// interrupts::disable_pic();
|
||||
// println_log!("[Success]");
|
||||
|
||||
// print_log!(" Initialising APIC");
|
||||
// enable_apic();
|
||||
// println_log!("[Success]");
|
||||
print_log!(" Initialising APIC... ");
|
||||
enable_apic();
|
||||
println_log!("[Success]");
|
||||
|
||||
print_log!(" Enabling Interrupts... ");
|
||||
x86_64::instructions::interrupts::enable();
|
||||
|
||||
Reference in New Issue
Block a user