File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use hermit_sync::{InterruptSpinMutex, InterruptTicketMutex};
8
8
pub use x86_64:: instructions:: interrupts:: { disable, enable, enable_and_hlt as enable_and_wait} ;
9
9
use x86_64:: set_general_handler;
10
10
pub use x86_64:: structures:: idt:: InterruptStackFrame as ExceptionStackFrame ;
11
- use x86_64:: structures:: idt:: { InterruptDescriptorTable , InterruptStackFrame } ;
11
+ use x86_64:: structures:: idt:: { self , InterruptDescriptorTable } ;
12
12
13
13
use crate :: arch:: x86_64:: kernel:: core_local:: { core_scheduler, increment_irq_counter} ;
14
14
use crate :: arch:: x86_64:: kernel:: { apic, processor} ;
@@ -109,10 +109,7 @@ pub(crate) fn install() {
109
109
}
110
110
111
111
#[ no_mangle]
112
- pub extern "C" fn irq_install_handler (
113
- irq_number : u8 ,
114
- handler : extern "x86-interrupt" fn ( InterruptStackFrame ) ,
115
- ) {
112
+ pub extern "C" fn irq_install_handler ( irq_number : u8 , handler : idt:: HandlerFunc ) {
116
113
debug ! ( "Install handler for interrupt {}" , irq_number) ;
117
114
118
115
let mut idt = IDT . lock ( ) ;
You can’t perform that action at this time.
0 commit comments