1
0

IDT tweaks

This commit is contained in:
Mark 2025-02-25 20:41:55 -08:00
parent c19af78ae2
commit 4131baa1a5
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
2 changed files with 3 additions and 3 deletions

View File

@ -58,14 +58,14 @@ bitflags! {
pub type HandlerFunc = extern "x86-interrupt" fn(InterruptStackFrame);
/// A handler function for an exception that pushes an error code.
pub type HandlerFuncWithErrCode = extern "x86-interrupt" fn(InterruptStackFrame, error_code: u64);
pub type HandlerFuncWithErrCode = extern "x86-interrupt" fn(InterruptStackFrame, error_code: u32);
/// A handler function that must not return, e.g. for a machine check exception.
pub type DivergingHandlerFunc = extern "x86-interrupt" fn(InterruptStackFrame) -> !;
/// A handler function with an error code that must not return, e.g. for a double fault exception.
pub type DivergingHandlerFuncWithErrCode =
extern "x86-interrupt" fn(InterruptStackFrame, error_code: u64) -> !;
extern "x86-interrupt" fn(InterruptStackFrame, error_code: u32) -> !;
/// A page fault handler function that pushes a page fault error code.
pub type PageFaultHandlerFunc =

View File

@ -409,7 +409,7 @@ pub struct InterruptDescriptorTable {
/// external interrupt was recognized.
/// - If the interrupt occurs as a result of executing the INTn instruction, the saved
/// instruction pointer points to the instruction after the INTn.
interrupts: [Entry<HandlerFunc>; 256 - 32],
pub interrupts: [Entry<HandlerFunc>; 256 - 32],
}
// spell:on