summaryrefslogtreecommitdiff
path: root/traps.h
diff options
context:
space:
mode:
authorRuss Cox <[email protected]>2009-07-11 18:17:32 -0700
committerRuss Cox <[email protected]>2009-07-11 18:17:32 -0700
commit8b75366ce4ae7ad5f77225b247d097955574ba0b (patch)
treed9f462b7d0d76ea6b3f8afea35887f912bfda94b /traps.h
parent27ff8f0e6f56e5f84688bcd41a7b4018b4e61173 (diff)
downloadxv6-labs-8b75366ce4ae7ad5f77225b247d097955574ba0b.tar.gz
xv6-labs-8b75366ce4ae7ad5f77225b247d097955574ba0b.tar.bz2
xv6-labs-8b75366ce4ae7ad5f77225b247d097955574ba0b.zip
s/IRQ_OFFSET/T_IRQ0/: it's a trap number, not an irq number.
move the SYSCALL number up, so does not overlap the IRQ traps.
Diffstat (limited to 'traps.h')
-rw-r--r--traps.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/traps.h b/traps.h
index 6476bbe..f450c2d 100644
--- a/traps.h
+++ b/traps.h
@@ -24,10 +24,10 @@
// These are arbitrarily chosen, but with care not to overlap
// processor defined exceptions or interrupt vectors.
-#define T_SYSCALL 48 // system call
+#define T_SYSCALL 64 // system call
#define T_DEFAULT 500 // catchall
-#define IRQ_OFFSET 32 // IRQ 0 corresponds to int IRQ_OFFSET
+#define T_IRQ0 32 // IRQ 0 corresponds to int T_IRQ
#define IRQ_TIMER 0
#define IRQ_KBD 1
@@ -35,3 +35,4 @@
#define IRQ_IDE 14
#define IRQ_ERROR 19
#define IRQ_SPURIOUS 31
+