]> gitweb.factorcode.org Git - factor.git/blob - vm/os-linux-arm.32.hpp
webapps.wiki: adding search bar
[factor.git] / vm / os-linux-arm.32.hpp
1 #include <ucontext.h>
2 #include <asm/unistd.h>
3 #include <sys/syscall.h>
4
5 namespace factor {
6
7 void flush_icache(cell start, cell len);
8
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)
13
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
18 }