Share interrupt/ipi.rs between x86 and x86_64
This commit is contained in:
@@ -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();
|
||||
});
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,5 +1,6 @@
|
||||
//! Interrupt instructions
|
||||
|
||||
pub mod ipi;
|
||||
pub mod trace;
|
||||
|
||||
pub use self::trace::stack_trace;
|
||||
|
||||
Reference in New Issue
Block a user