summaryrefslogtreecommitdiff
path: root/kernel/src/interrupts/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/interrupts/mod.rs')
-rw-r--r--kernel/src/interrupts/mod.rs23
1 files changed, 19 insertions, 4 deletions
diff --git a/kernel/src/interrupts/mod.rs b/kernel/src/interrupts/mod.rs
index b39eb37..27993ec 100644
--- a/kernel/src/interrupts/mod.rs
+++ b/kernel/src/interrupts/mod.rs
@@ -9,15 +9,30 @@ const INT_OFFSET: u8 = 32;
#[repr(u8)]
#[derive(PartialEq, Clone, Copy)]
pub enum InterruptType {
- None,
- PageFault,
+ DivZero,
+ Debug,
+ NonMaskableInterrupt,
+ Breakpoint,
+ Overflow,
+ BountRange,
+ InvalidOptcode,
+ DeviceNotAvailable,
DoubleFault,
+ CoprocessorOverrun,
+ InvalidTTS,
NotPresent,
- Breakpoint,
+ StackSegmentFault,
GeneralProtectionFault,
-
+ PageFault,
+ x87Floating = 16,
+ AlignmentCheck,
+ MachineCheck,
+ SIMD,
+ Virtualization,
+ Security,
Timer = INT_OFFSET,
Keyboard = INT_OFFSET + 1,
+ None = 255,
}
impl InterruptType {