linux 32 typo

db4
Joe Groff 2009-09-14 13:21:46 -05:00
parent 32be55fa68
commit 89ce13d4d4
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ 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)
{ {
ucontext_t *ucontext = (ucontext_t *)uap; ucontext_t *ucontext = (ucontext_t *)uap;
struct _fpstate *fpregs = (struct _fpstate *)uap->uc_mcontext.fpregs; struct _fpstate *fpregs = (struct _fpstate *)ucontext->uc_mcontext.fpregs;
if (fpregs->magic == X86_FXSR_MAGIC) if (fpregs->magic == X86_FXSR_MAGIC)
return fpregs->sw | fpregs->mxcsr; return fpregs->sw | fpregs->mxcsr;
else else
@ -48,7 +48,7 @@ inline static unsigned int uap_fpu_status(void *uap)
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;
struct _fpstate *fpregs = (struct _fpstate *)uap->uc_mcontext.fpregs; struct _fpstate *fpregs = (struct _fpstate *)ucontext->uc_mcontext.fpregs;
fpregs->sw = 0; fpregs->sw = 0;
if (fpregs->magic == X86_FXSR_MAGIC) if (fpregs->magic == X86_FXSR_MAGIC)
fpregs->mxcsr &= 0xffffffc0; fpregs->mxcsr &= 0xffffffc0;