4 #include <exec/types.h>
6 #define VECTOR_RESET 0x00
7 #define VECTOR_UNDEFINED 0x04
8 #define VECTOR_SWI 0x08
9 #define VECTOR_PREFETCH_ABORT 0x0c
10 #define VECTOR_DATA_ABORT 0x10
11 #define VECTOR_IRQ 0x18
12 #define VECTOR_FIQ 0x1c
14 #define INSTALL_IRQ_HANDLER(vectoraddress, routineaddress) \
15 *(ULONG *)vectoraddress = (((ULONG)routineaddress - vectoraddress - 8) >> 2) | \
18 #define MODE_USER 0x10
22 #define MODE_ABORT 0x17
23 #define MODE_UNDEF 0x1b
24 #define MODE_SYSTEM 0x1f