git: DragonFly_RELEASE_3_8 kernel/npx: Add detection code for default MXCSR mask

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jun 12 21:18:49 PDT 2014


commit 266d3abdd3a6647c080c201fb5dcd967e08185bc
Author: Markus Pfeiffer <markus.pfeiffer at morphism.de>
Date:   Wed Jun 11 23:09:20 2014 +0100

    kernel/npx: Add detection code for default MXCSR mask
    
    As per Intel/AMD manuals the default MXCSR mask can be probed
    by executing fxstor (if supported) and reading the mask from the
    stored state. This patch adds detection of the mask when it is
    supported. Otherwise a default mask of 0xFFBF is used as before.
    
    Conflicts:
    	sys/platform/pc64/x86_64/npx.c

Summary of changes:
 sys/cpu/x86_64/include/npx.h          |  5 ++++-
 sys/platform/pc64/x86_64/identcpu.c   | 12 ++++++++++++
 sys/platform/pc64/x86_64/machdep.c    |  2 +-
 sys/platform/pc64/x86_64/mp_machdep.c |  2 +-
 sys/platform/pc64/x86_64/npx.c        | 37 +++++++++++++++++++++++++++--------
 5 files changed, 47 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/266d3abdd3a6647c080c201fb5dcd967e08185bc


-- 
DragonFly BSD source repository


More information about the Commits mailing list