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

13 lines
275 B
C++
Raw Normal View History

2009-05-02 05:04:19 -04:00
#include <ucontext.h>
2009-05-04 02:46:13 -04:00
namespace factor
{
2009-05-02 05:04:19 -04:00
#define ucontext_stack_pointer(uap) \
((void *)(((ucontext_t *)(uap))->uc_mcontext.__gregs[_REG_URSP]))
2009-05-04 02:46:13 -04:00
static inline unsigned int uap_fpu_status(void *uap) { return 0; }
static inline void uap_clear_fpu_status(void *uap) { }
2009-05-04 02:46:13 -04:00
}