]> gitweb.factorcode.org Git - factor.git/blob - vm/os-solaris-x86.64.hpp
32 and 64 bit Linux PPC support
[factor.git] / vm / os-solaris-x86.64.hpp
1 #include <ucontext.h>
2
3 namespace factor
4 {
5
6 #define UAP_STACK_POINTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[RSP])
7 #define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[RIP])
8
9 #define UAP_SET_TOC_POINTER(uap, ptr) (void)0
10 #define CODE_TO_FUNCTION_POINTER(code) (void)0
11 #define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
12 #define FUNCTION_CODE_POINTER(ptr) ptr
13 #define FUNCTION_TOC_POINTER(ptr) ptr
14 }