git: kernel: Don't store FPU status into the reserved area of fxsave

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Mar 1 07:06:39 PST 2011


commit 5524f0b4e61d20dc53f24613a3ad8af532824573
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Mar 1 22:44:16 2011 +0800

    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.

Summary of changes:
 sys/cpu/i386/include/npx.h               |    4 ++--
 sys/cpu/x86_64/include/npx.h             |    4 ++--
 sys/platform/pc32/i386/machdep.c         |    4 ----
 sys/platform/pc32/isa/npx.c              |   20 +++-----------------
 sys/platform/pc64/x86_64/machdep.c       |    4 ----
 sys/platform/pc64/x86_64/npx.c           |   13 -------------
 sys/platform/vkernel/i386/cpu_regs.c     |    4 ----
 sys/platform/vkernel/i386/npx.c          |   20 +++-----------------
 sys/platform/vkernel64/x86_64/cpu_regs.c |    4 ----
 sys/platform/vkernel64/x86_64/npx.c      |   13 -------------
 10 files changed, 10 insertions(+), 80 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5524f0b4e61d20dc53f24613a3ad8af532824573


-- 
DragonFly BSD source repository





More information about the Commits mailing list