Skip to content

Commit

Permalink
refactor(x86_64/interrupts): use idt::HandlerFunc alias from x86_64
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening authored and CarlWachter committed May 31, 2024
1 parent 0bf4f1d commit 58a2e3b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/arch/x86_64/kernel/interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ use x86_64::set_general_handler;
use x86_64::structures::idt;
use x86_64::structures::idt::InterruptDescriptorTable;
pub use x86_64::structures::idt::InterruptStackFrame as ExceptionStackFrame;
<<<<<<< HEAD
use x86_64::structures::idt::{InterruptDescriptorTable, InterruptStackFrame};
=======
>>>>>>> 657edb5c (feat(newlib): remove lwIP support)

use crate::arch::x86_64::kernel::core_local::{core_scheduler, increment_irq_counter};
use crate::arch::x86_64::kernel::{apic, processor};
Expand Down Expand Up @@ -114,16 +110,8 @@ pub(crate) fn install() {
IRQ_NAMES.lock().insert(7, "FPU");
}

<<<<<<< HEAD
#[no_mangle]
pub extern "C" fn irq_install_handler(
irq_number: u8,
handler: extern "x86-interrupt" fn(InterruptStackFrame),
) {
=======
#[cfg(any(feature = "fuse", feature = "tcp", feature = "udp"))]
pub fn irq_install_handler(irq_number: u8, handler: idt::HandlerFunc) {
>>>>>>> 657edb5c (feat(newlib): remove lwIP support)
debug!("Install handler for interrupt {}", irq_number);

let mut idt = IDT.lock();
Expand Down

0 comments on commit 58a2e3b

Please sign in to comment.