6 inline static unsigned int uap_fpu_status(void *uap)
8 ucontext_t *ucontext = (ucontext_t *)uap;
9 return ucontext->uc_mcontext.fpregs->swd
10 | ucontext->uc_mcontext.fpregs->mxcsr;
13 inline static void uap_clear_fpu_status(void *uap)
15 ucontext_t *ucontext = (ucontext_t *)uap;
16 ucontext->uc_mcontext.fpregs->swd = 0;
17 ucontext->uc_mcontext.fpregs->mxcsr &= 0xffffffc0;
20 #define UAP_STACK_POINTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[15])
21 #define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[16])