factor/vm/os-netbsd-x86.64.h

5 lines
128 B
C

#include <ucontext.h>
#define ucontext_stack_pointer(uap) \
((void *)(((ucontext_t *)(uap))->uc_mcontext.__gregs[_REG_URSP]))