CACAO
Macros | Functions
trap.cpp File Reference

Go to the source code of this file.

Macros

#define N_PV_OFFSET   0
 

Functions

void trap_init (void)
 Mmap the first memory page to support hardware exceptions and check the maximum hardware trap displacement on the architectures where it is required (TRAP_INSTRUCTION_IS_LOAD defined to 1). More...
 
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 correct function. More...
 

Macro Definition Documentation

#define N_PV_OFFSET   0

Definition at line 60 of file trap.cpp.

Function Documentation

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 correct function.

Parameters
sigsignal number
xpcexception PC
contextpointer to OS dependent machine context

Definition at line 101 of file trap.cpp.

void trap_init ( void  )

Mmap the first memory page to support hardware exceptions and check the maximum hardware trap displacement on the architectures where it is required (TRAP_INSTRUCTION_IS_LOAD defined to 1).

Definition at line 68 of file trap.cpp.