comparison include/traps.h @ 0:ed10291ff195

first commit
author mir3636
date Sun, 06 Jan 2019 19:27:03 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ed10291ff195
1 /*****************************************************************
2 * traps.h
3 * by Zhiyi Huang, hzy@cs.otago.ac.nz
4 * University of Otago
5 *
6 ********************************************************************/
7
8
9
10 // These are arbitrarily chosen, but with care not to overlap
11 // processor defined exceptions or interrupt vectors.
12 #define T_SYSCALL 0x40 // system call
13 #define T_IRQ 0x80 // interrupt
14 #define T_UND 0x01 // undefined instruction
15 #define T_PABT 0x02 // prefetch abort
16 #define T_DABT 0x04 // data abort
17
18 #define IRQ_TIMER3 3
19 #define IRQ_MINIUART 29
20
21 #define INT_REGS_BASE (MMIO_VA+0xB200)