]> gitweb.factorcode.org Git - factor.git/blob - vm/os-solaris-x86.32.hpp
d098ac8f93b71d98cf00b356eed1f47d38f66c78
[factor.git] / vm / os-solaris-x86.32.hpp
1 #include <ucontext.h>
2
3 namespace factor
4 {
5
6 #define UAP_STACK_POINTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[ESP])
7 #define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[EIP])
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 }