make freebsd64 compile

db4
sheeple 2008-03-20 23:53:05 -05:00
parent 9584be2981
commit d1e72fd03b
2 changed files with 11 additions and 0 deletions

9
vm/os-freebsd-x86.64.h Normal file
View File

@ -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)

View File

@ -49,6 +49,8 @@
#if defined(FACTOR_X86)
#include "os-freebsd-x86.32.h"
#elif defined(FACTOR_AMD64)
#include "os-freebsd-x86.64.h"
#else
#error "Unsupported FreeBSD flavor"
#endif