Fixed stack unwind bugs (works!)

This commit is contained in:
2025-03-06 01:22:17 +00:00
parent f197149d80
commit 5aad3e6096
4 changed files with 33 additions and 16 deletions
+3
View File
@@ -36,6 +36,7 @@ use crate::{
use arch::x86_64::memory::mapping;
use core::arch::asm;
use limine::BaseRevision;
use std::unwind::UNWINDER;
use x86_64::VirtAddr;
pub mod arch;
@@ -144,5 +145,7 @@ pub fn boot() -> Result<(), &'static str> {
x86_64::instructions::interrupts::enable();
debugln!("[Success]");
UNWINDER.lock(); // Initialises the Unwinder once and only once :fingers_crossed:.
Ok(())
}