@@ -572,18 +572,17 @@ pub struct Entry<F> {
572
572
}
573
573
574
574
/// A handler function for an interrupt or an exception without error code.
575
- pub type HandlerFunc = extern "x86-interrupt" fn ( & mut InterruptStackFrame ) ;
575
+ pub type HandlerFunc = extern "x86-interrupt" fn ( InterruptStackFrame ) ;
576
576
/// A handler function for an exception that pushes an error code.
577
- pub type HandlerFuncWithErrCode =
578
- extern "x86-interrupt" fn ( & mut InterruptStackFrame , error_code : u64 ) ;
577
+ pub type HandlerFuncWithErrCode = extern "x86-interrupt" fn ( InterruptStackFrame , error_code : u64 ) ;
579
578
/// A page fault handler function that pushes a page fault error code.
580
579
pub type PageFaultHandlerFunc =
581
- extern "x86-interrupt" fn ( & mut InterruptStackFrame , error_code : PageFaultErrorCode ) ;
580
+ extern "x86-interrupt" fn ( InterruptStackFrame , error_code : PageFaultErrorCode ) ;
582
581
/// A handler function that must not return, e.g. for a machine check exception.
583
- pub type DivergingHandlerFunc = extern "x86-interrupt" fn ( & mut InterruptStackFrame ) -> !;
582
+ pub type DivergingHandlerFunc = extern "x86-interrupt" fn ( InterruptStackFrame ) -> !;
584
583
/// A handler function with an error code that must not return, e.g. for a double fault exception.
585
584
pub type DivergingHandlerFuncWithErrCode =
586
- extern "x86-interrupt" fn ( & mut InterruptStackFrame , error_code : u64 ) -> !;
585
+ extern "x86-interrupt" fn ( InterruptStackFrame , error_code : u64 ) -> !;
587
586
588
587
impl < F > Entry < F > {
589
588
/// Creates a non-present IDT entry (but sets the must-be-one bits).
0 commit comments