1 #include <amd64/signal.h>
3 INLINE
void *openbsd_stack_pointer(void *uap
)
5 struct sigcontext
*sc
= (struct sigcontext
*) uap
;
6 return (void *)sc
->sc_rsp
;
9 #define ucontext_stack_pointer openbsd_stack_pointer
10 #define UAP_PROGRAM_COUNTER(uap) (((struct sigcontext*)(uap))->sc_rip)