]> gitweb.factorcode.org Git - factor.git/blob - vm/os-linux-arm.hpp
Merge remote-tracking branch 'blei/curses' into curses
[factor.git] / vm / os-linux-arm.hpp
1 #include <ucontext.h>
2 #include <asm/unistd.h>
3 #include <sys/syscall.h>
4
5 namespace factor
6 {
7
8 void flush_icache(cell start, cell len);
9
10 #define UAP_STACK_POINTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.arm_sp)
11 #define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.arm_pc)
12 #define UAP_STACK_POINTER_TYPE greg_t
13 #define UAP_SET_TOC_POINTER(uap, ptr) (void)0
14
15 #define CODE_TO_FUNCTION_POINTER(code) (void)0
16 #define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
17 #define FUNCTION_CODE_POINTER(ptr) ptr
18 #define FUNCTION_TOC_POINTER(ptr) ptr
19 }