make freebsd64 compile
parent
9584be2981
commit
d1e72fd03b
|
@ -0,0 +1,9 @@
|
||||||
|
#include <ucontext.h>
|
||||||
|
|
||||||
|
INLINE void *ucontext_stack_pointer(void *uap)
|
||||||
|
{
|
||||||
|
ucontext_t *ucontext = (ucontext_t *)uap;
|
||||||
|
return (void *)ucontext->uc_mcontext.mc_rsp;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)(ucontext))->uc_mcontext.mc_rip)
|
|
@ -49,6 +49,8 @@
|
||||||
|
|
||||||
#if defined(FACTOR_X86)
|
#if defined(FACTOR_X86)
|
||||||
#include "os-freebsd-x86.32.h"
|
#include "os-freebsd-x86.32.h"
|
||||||
|
#elif defined(FACTOR_AMD64)
|
||||||
|
#include "os-freebsd-x86.64.h"
|
||||||
#else
|
#else
|
||||||
#error "Unsupported FreeBSD flavor"
|
#error "Unsupported FreeBSD flavor"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue