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

16 lines
311 B
C++
Raw Normal View History

2009-05-02 05:04:19 -04:00
#include <amd64/signal.h>
2009-05-04 02:46:13 -04:00
namespace factor
{
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_rsp;
}
#define ucontext_stack_pointer openbsd_stack_pointer
#define UAP_PROGRAM_COUNTER(uap) (((struct sigcontext*)(uap))->sc_rip)
2009-05-04 02:46:13 -04:00
}