Don't enable APIC yet
This commit is contained in:
+13
-6
@@ -137,13 +137,13 @@ pub fn boot() -> Result<(), Box<dyn core::error::Error>> {
|
|||||||
interrupts::enable_pic();
|
interrupts::enable_pic();
|
||||||
debugln!("[Success]");
|
debugln!("[Success]");
|
||||||
|
|
||||||
debug!(" Disabling PICs... ");
|
// debug!(" Disabling PICs... ");
|
||||||
interrupts::disable_pic();
|
// interrupts::disable_pic();
|
||||||
debugln!("[Success]");
|
// debugln!("[Success]");
|
||||||
|
|
||||||
debug!(" Initialising APIC... ");
|
// debug!(" Initialising APIC... ");
|
||||||
enable_apic();
|
// enable_apic();
|
||||||
debugln!("[Success]");
|
// debugln!("[Success]");
|
||||||
|
|
||||||
debug!(" Enabling Interrupts... ");
|
debug!(" Enabling Interrupts... ");
|
||||||
x86_64::instructions::interrupts::enable();
|
x86_64::instructions::interrupts::enable();
|
||||||
@@ -151,3 +151,10 @@ pub fn boot() -> Result<(), Box<dyn core::error::Error>> {
|
|||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[panic_handler]
|
||||||
|
fn panic(_info: &core::panic::PanicInfo<'_>) -> ! {
|
||||||
|
debugln!("{:?}", _info);
|
||||||
|
|
||||||
|
hcf()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user