Messages in this thread Patch in this message | | | From | Hans Rosenfeld <> | Subject | [PATCH] x86-32, fpu: unbreak FPU exceptions on systems without SSE | Date | Tue, 5 Apr 2011 19:26:32 +0200 |
| |
On 32bit systems without SSE, FPU exceptions in user mode cause Oopses, BUGs, recursive faults and other nasty things.
This was caused by commit 58a992b9cbaf449aeebd3575c3695a9eb5d95b5e: x86-32, fpu: Rewrite fpu_save_init() --- arch/x86/include/asm/i387.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/i387.h b/arch/x86/include/asm/i387.h index ef32890..c9e09ea 100644 --- a/arch/x86/include/asm/i387.h +++ b/arch/x86/include/asm/i387.h @@ -237,7 +237,7 @@ static inline void fpu_save_init(struct fpu *fpu) } else if (use_fxsr()) { fpu_fxsave(fpu); } else { - asm volatile("fsave %[fx]; fwait" + asm volatile("fnsave %[fx]; fwait" : [fx] "=m" (fpu->state->fsave)); return; } -- 1.5.6.5
| |