From 91e5602e82582920ed2adb189387f71f12d49869 Mon Sep 17 00:00:00 2001 From: Jacob Hinchliffe Date: Mon, 10 Mar 2025 13:29:07 +0000 Subject: [PATCH] Don't enable APIC yet --- kernel/src/lib.rs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/kernel/src/lib.rs b/kernel/src/lib.rs index 7c2efcc..a9f9120 100644 --- a/kernel/src/lib.rs +++ b/kernel/src/lib.rs @@ -137,13 +137,13 @@ pub fn boot() -> Result<(), Box> { 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> { Ok(()) } + +#[panic_handler] +fn panic(_info: &core::panic::PanicInfo<'_>) -> ! { + debugln!("{:?}", _info); + + hcf() +}