fix compilation on linux 32
parent
448b89f585
commit
6ae07e8a08
|
@ -11,16 +11,15 @@ inline static void *ucontext_stack_pointer(void *uap)
|
||||||
|
|
||||||
inline static unsigned int uap_fpu_status(void *uap)
|
inline static unsigned int uap_fpu_status(void *uap)
|
||||||
{
|
{
|
||||||
|
// XXX mxcsr not available in i386 ucontext
|
||||||
ucontext_t *ucontext = (ucontext_t *)uap;
|
ucontext_t *ucontext = (ucontext_t *)uap;
|
||||||
return ucontext->uc_mcontext.fpregs->swd
|
return ucontext->uc_mcontext.fpregs->sw;
|
||||||
| ucontext->uc_mcontext.fpregs->mxcsr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static void uap_clear_fpu_status(void *uap)
|
inline static void uap_clear_fpu_status(void *uap)
|
||||||
{
|
{
|
||||||
ucontext_t *ucontext = (ucontext_t *)uap;
|
ucontext_t *ucontext = (ucontext_t *)uap;
|
||||||
ucontext->uc_mcontext.fpregs->swd = 0;
|
ucontext->uc_mcontext.fpregs->sw = 0;
|
||||||
ucontext->uc_mcontext.fpregs->mxcsr &= 0xffffffc0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define UAP_PROGRAM_COUNTER(ucontext) \
|
#define UAP_PROGRAM_COUNTER(ucontext) \
|
||||||
|
|
Loading…
Reference in New Issue