gila/src/kernel/interrupt/mod.rs
August f9fd19b6d0
All checks were successful
Continuous Integration / Check (push) Successful in 43s
Continuous Integration / Clippy (push) Successful in 41s
fixing GPFs
2026-07-05 15:01:51 +00:00

18 lines
443 B
Rust

// Copyright (c) 2025 shibedrill
// SPDX-License-Identifier: MIT
use crate::log::*;
use crate::{format, log_error, memory::alloc::string::String};
pub fn double_fault(info: String) {
log_error!("Double fault: {}", info);
}
pub fn page_fault_fatal(addr: usize, info: String) -> ! {
panic!("Fatal page fault at 0x{:x}: {}", addr, info);
}
pub fn gen_prot_fault(info: String) {
log_error!("General protection fault: {}", info);
}