/vm/os-solaris-x86.32.hpp

http://github.com/abeaumont/factor · C++ Header · 9 lines · 6 code · 3 blank · 0 comment · 0 complexity · b954bf14c0784843e4369fccb13fc2b4 MD5 · raw file

  1. #include <ucontext.h>
  2. namespace factor
  3. {
  4. #define UAP_STACK_POINTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[ESP])
  5. #define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[EIP])
  6. }