summaryrefslogtreecommitdiff
path: root/traps.h
diff options
context:
space:
mode:
Diffstat (limited to 'traps.h')
-rw-r--r--traps.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/traps.h b/traps.h
index a81903c..4b2d368 100644
--- a/traps.h
+++ b/traps.h
@@ -24,3 +24,9 @@
// processor defined exceptions or interrupt vectors.
#define T_SYSCALL 48 // system call
#define T_DEFAULT 500 // catchall
+
+#define IRQ_OFFSET 32 // IRQ 0 corresponds to int IRQ_OFFSET
+
+#define IRQ_TIMER 18
+#define IRQ_ERROR 19
+#define IRQ_SPURIOUS 31