use patina::{error::EfiError, pi::protocol::cpu_arch::EfiSystemContext};
use crate::interrupts::InterruptManager;
#[derive(Debug)]
#[allow(dead_code)]
pub struct ExceptionContextStub;
impl super::EfiSystemContextFactory for ExceptionContextStub {
fn create_efi_system_context(&mut self) -> EfiSystemContext {
EfiSystemContext { system_context_ebc: core::ptr::null_mut() }
}
}
impl super::EfiExceptionInfoDump for ExceptionContextStub {
fn dump_stack_trace(&self) {}
fn dump_system_context_registers(&self) {}
}
#[derive(Default, Copy, Clone)]
pub struct InterruptsStub {}
impl InterruptsStub {
pub const fn new() -> Self {
Self {}
}
pub fn initialize(&mut self) -> Result<(), EfiError> {
Ok(())
}
}
impl InterruptManager for InterruptsStub {}