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

Markus Pfeiffer profmakx at crater.dragonflybsd.org
Wed Jun 11 16:02:28 PDT 2014


commit 186c803fb9de117fca51aa897f8550bd4e49c030
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.

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        | 32 ++++++++++++++++++++++++++------
 5 files changed, 44 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/186c803fb9de117fca51aa897f8550bd4e49c030


-- 
DragonFly BSD source repository


More information about the Commits mailing list