@@ -572,18 +572,17 @@ pub struct Entry<F> {
572572}
573573
574574/// 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 ) ;
576576/// 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 ) ;
579578/// A page fault handler function that pushes a page fault error code.
580579pub type PageFaultHandlerFunc =
581- extern "x86-interrupt" fn ( & mut InterruptStackFrame , error_code : PageFaultErrorCode ) ;
580+ extern "x86-interrupt" fn ( InterruptStackFrame , error_code : PageFaultErrorCode ) ;
582581/// 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 ) -> !;
584583/// A handler function with an error code that must not return, e.g. for a double fault exception.
585584pub type DivergingHandlerFuncWithErrCode =
586- extern "x86-interrupt" fn ( & mut InterruptStackFrame , error_code : u64 ) -> !;
585+ extern "x86-interrupt" fn ( InterruptStackFrame , error_code : u64 ) -> !;
587586
588587impl < F > Entry < F > {
589588 /// Creates a non-present IDT entry (but sets the must-be-one bits).
0 commit comments