IDT tweaks
This commit is contained in:
parent
c19af78ae2
commit
4131baa1a5
@ -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 =
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user