kernel: Don't store FPU status into the reserved area of fxsave
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 1 Mar 2011 14:44:16 +0000 (22:44 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 1 Mar 2011 15:00:26 +0000 (23:00 +0800)
commit5524f0b4e61d20dc53f24613a3ad8af532824573
treebf98a7263cf4f7bdb77356e667275503601950bd
parentfdd1e7307a9acf08b1bca6acf1b93fbe2f1b98cf
kernel: Don't store FPU status into the reserved area of fxsave

Since each time before the old sv_ex_sw is accessed, fnstsw() is
always called, it no longer makes any sense to save the temporary
in the reserved area for fxsave.  And more important: saving the
FPU status into fxsave area overwrites saved xmm register value.
sys/cpu/i386/include/npx.h
sys/cpu/x86_64/include/npx.h
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/isa/npx.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/pc64/x86_64/npx.c
sys/platform/vkernel/i386/cpu_regs.c
sys/platform/vkernel/i386/npx.c
sys/platform/vkernel64/x86_64/cpu_regs.c
sys/platform/vkernel64/x86_64/npx.c