]> gitweb.factorcode.org Git - factor.git/blob - vm/os-linux-arm.hpp
VM: use better abstractions for tagged pointers, eliminate get()/set() stuff, clean...
[factor.git] / vm / os-linux-arm.hpp
1 #include <ucontext.h>
2 #include <asm/unistd.h>
3 #include <sys/syscall.h>
4
5 inline static void *ucontext_stack_pointer(void *uap)
6 {
7         ucontext_t *ucontext = (ucontext_t *)uap;
8         return (void *)ucontext->uc_mcontext.arm_sp;
9 }
10
11 #define UAP_PROGRAM_COUNTER(ucontext) \
12         (((ucontext_t *)(ucontext))->uc_mcontext.arm_pc)
13
14 void flush_icache(CELL start, CELL len);