63 #include "md-trap.hpp"
intptr_t value
Value (numeric or address) passed with the trap.
Contains information about a decoded trap instruction.
void trap_init(void)
Mmap the first memory page to support hardware exceptions and check the maximum hardware trap displac...
int type
Specific trap type (see md-trap.h).
bool md_trap_decode(trapinfo_t *trp, int sig, void *xpc, executionstate_t *es)
Decode the trap instruction at the given PC.
void trap_handle(int sig, void *xpc, void *context)
Handles the signal which is generated by trap instructions, caught by a signal handler and calls the ...
struct trapinfo_t trapinfo_t
Contains information about a decoded trap instruction.