Don't enable APIC yet

This commit is contained in:
2025-03-10 13:29:07 +00:00
parent a83108a08e
commit 91e5602e82
+13 -6
View File
@@ -137,13 +137,13 @@ pub fn boot() -> Result<(), Box<dyn core::error::Error>> {
interrupts::enable_pic();
debugln!("[Success]");
debug!(" Disabling PICs... ");
interrupts::disable_pic();
debugln!("[Success]");
// debug!(" Disabling PICs... ");
// interrupts::disable_pic();
// debugln!("[Success]");
debug!(" Initialising APIC... ");
enable_apic();
debugln!("[Success]");
// debug!(" Initialising APIC... ");
// enable_apic();
// debugln!("[Success]");
debug!(" Enabling Interrupts... ");
x86_64::instructions::interrupts::enable();
@@ -151,3 +151,10 @@ pub fn boot() -> Result<(), Box<dyn core::error::Error>> {
Ok(())
}
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo<'_>) -> ! {
debugln!("{:?}", _info);
hcf()
}