Share interrupt/ipi.rs between x86 and x86_64

This commit is contained in:
bjorn3
2024-02-25 14:42:49 +01:00
parent 62614db9ac
commit fbe2980b3d
5 changed files with 1 additions and 28 deletions
-26
View File
@@ -1,26 +0,0 @@
use x86::tlb;
use crate::{context, device::local_apic::LOCAL_APIC};
interrupt!(wakeup, || {
LOCAL_APIC.eoi();
});
interrupt!(tlb, || {
LOCAL_APIC.eoi();
tlb::flush_all();
});
interrupt!(switch, || {
LOCAL_APIC.eoi();
let _ = context::switch();
});
interrupt!(pit, || {
LOCAL_APIC.eoi();
// Switch after a sufficent amount of time since the last switch.
context::switch::tick();
});
-1
View File
@@ -6,7 +6,6 @@ pub use crate::arch::x86_shared::interrupt::*;
pub mod handler;
pub mod exception;
pub mod ipi;
pub mod irq;
pub mod syscall;
-1
View File
@@ -6,7 +6,6 @@ pub use crate::arch::x86_shared::interrupt::*;
pub mod handler;
pub mod exception;
pub mod ipi;
pub mod irq;
pub mod syscall;
+1
View File
@@ -1,5 +1,6 @@
//! Interrupt instructions
pub mod ipi;
pub mod trace;
pub use self::trace::stack_trace;