kernel/npx: Add detection code for default MXCSR mask
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Wed, 11 Jun 2014 22:09:20 +0000 (23:09 +0100)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Wed, 11 Jun 2014 22:59:32 +0000 (23:59 +0100)
commit186c803fb9de117fca51aa897f8550bd4e49c030
tree1fe3f870aa50ea810ad810faafbdd899439a509f
parented6e0e1b5a651f444775078198177416bfe85b55
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.
sys/cpu/x86_64/include/npx.h
sys/platform/pc64/x86_64/identcpu.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/pc64/x86_64/mp_machdep.c
sys/platform/pc64/x86_64/npx.c