Mercurial > hg > Members > innparusu > xv6_rpi_port
annotate uprogs/traps.h @ 11:0157781eb6c2 default tip
add entry point
author | mir3636 |
---|---|
date | Tue, 25 Dec 2018 19:06:09 +0900 |
parents | c450faca55f4 |
children |
rev | line source |
---|---|
0 | 1 // These are arbitrarily chosen, but with care not to overlap |
2 // processor defined exceptions or interrupt vectors. | |
3 #define T_SYSCALL 64 // system call | |
4 #define T_DEFAULT 500 // catchall | |
5 | |
6 #define T_IRQ0 32 // IRQ 0 corresponds to int T_IRQ | |
7 | |
8 #define IRQ_TIMER 0 | |
9 #define IRQ_KBD 1 | |
10 #define IRQ_COM1 4 | |
11 #define IRQ_IDE 14 | |
12 #define IRQ_ERROR 19 | |
13 #define IRQ_SPURIOUS 31 | |
14 | |
15 |