]> gitweb.factorcode.org Git - factor.git/commitdiff
linux 32 typo
authorJoe Groff <joe@victoria.(none)>
Mon, 14 Sep 2009 18:21:46 +0000 (13:21 -0500)
committerJoe Groff <joe@victoria.(none)>
Mon, 14 Sep 2009 18:21:46 +0000 (13:21 -0500)
vm/os-linux-x86.32.hpp

index 8fa7eff84210349fab5cfb28c3500d193b71da6d..bd2315ccef6394e55c592f379fea5c34b0bbff12 100644 (file)
@@ -38,7 +38,7 @@ inline static void *ucontext_stack_pointer(void *uap)
 inline static unsigned int uap_fpu_status(void *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)
            return fpregs->sw | fpregs->mxcsr;
        else
@@ -48,7 +48,7 @@ inline static unsigned int uap_fpu_status(void *uap)
 inline static void uap_clear_fpu_status(void *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;
        if (fpregs->magic == X86_FXSR_MAGIC)
            fpregs->mxcsr &= 0xffffffc0;