factor/vm/os-openbsd-x86.32.hpp

11 lines
287 B
C++
Raw Normal View History

2009-05-02 05:04:19 -04:00
#include <i386/signal.h>
inline static void *openbsd_stack_pointer(void *uap)
2009-05-02 05:04:19 -04:00
{
struct sigcontext *sc = (struct sigcontext*) uap;
return (void *)sc->sc_esp;
}
#define ucontext_stack_pointer openbsd_stack_pointer
#define UAP_PROGRAM_COUNTER(uap) (((struct sigcontext*)(uap))->sc_eip)