2 #include <asm/unistd.h>
3 #include <sys/syscall.h>
7 void flush_icache(cell start, cell len);
9 #define UAP_STACK_POINTER(ucontext) \
10 (((ucontext_t*)ucontext)->uc_mcontext.arm_sp)
11 #define UAP_PROGRAM_COUNTER(ucontext) \
12 (((ucontext_t*)ucontext)->uc_mcontext.arm_pc)
14 #define CODE_TO_FUNCTION_POINTER(code) (void)0
15 #define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
16 #define FUNCTION_CODE_POINTER(ptr) ptr
17 #define FUNCTION_TOC_POINTER(ptr) ptr