![]() |
TRAP | Function (Macro) |
intr.h |
#define TRAP(TrapNo) ((long) (TrapNo) * 4 + 0x80) |
Gets an address of a trap vector.
TRAP returns the absolute address where the interrupt vector for Trap TrapNo
is located.
You can use it together with
FIRST_TRAP,
LAST_TRAP, and
TRAP_COUNT
to loop through all traps.