Skip to content

Commit 7a27cd7

Browse files
committed
refactor(x86_64/interrupts): use idt::HandlerFunc alias from x86_64
Signed-off-by: Martin Kröning <[email protected]>
1 parent 9bbf71b commit 7a27cd7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/arch/x86_64/kernel/interrupts.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use hermit_sync::{InterruptSpinMutex, InterruptTicketMutex};
88
pub use x86_64::instructions::interrupts::{disable, enable, enable_and_hlt as enable_and_wait};
99
use x86_64::set_general_handler;
1010
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};
1212

1313
use crate::arch::x86_64::kernel::core_local::{core_scheduler, increment_irq_counter};
1414
use crate::arch::x86_64::kernel::{apic, processor};
@@ -109,10 +109,7 @@ pub(crate) fn install() {
109109
}
110110

111111
#[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) {
116113
debug!("Install handler for interrupt {}", irq_number);
117114

118115
let mut idt = IDT.lock();

0 commit comments

Comments
 (0)