]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix broken math-emu with lazy allocation of fpu area
authorSuresh Siddha <suresh.b.siddha@intel.com>
Fri, 23 May 2008 23:26:37 +0000 (16:26 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 4 Jun 2008 11:11:46 +0000 (13:11 +0200)
commitcf9206234d1611ab8d7f72d270cb8637a08d65ea
tree8792b784e54982decd56a29acb02f63ce62a03ab
parentedb5867f8802a693f4f1be05dca78f36270fae32
x86: fix broken math-emu with lazy allocation of fpu area

Fix the math emulation that got broken with the recent lazy allocation of FPU
area. init_fpu() need to be added for the math-emulation path aswell
for the FPU area allocation.

math emulation enabled kernel booted fine with this, in the presence
of "no387 nofxsr" boot param.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: hpa@zytor.com
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/i387.c
arch/x86/math-emu/fpu_entry.c
include/asm-x86/i387.h