summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/fpu.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-05-09 18:28:05 +0000
committerpeter <peter@FreeBSD.org>2003-05-09 18:28:05 +0000
commit31356c64a85c099318415ca5479ed30f778f207c (patch)
treea5d247d83865587b54715fa5527f48c22bc8c720 /sys/amd64/include/fpu.h
parent9bc9519226a0b7b469e7a5a570c5627287aa4702 (diff)
downloadFreeBSD-src-31356c64a85c099318415ca5479ed30f778f207c.zip
FreeBSD-src-31356c64a85c099318415ca5479ed30f778f207c.tar.gz
Include the MXCSR initial values, based on the AMD docs. This file
should really be renamed to fpu.h and npx.c to fpu.c since its part of the core architecture on amd64 systems, not an isa 'numeric processor extension'.
Diffstat (limited to 'sys/amd64/include/fpu.h')
-rw-r--r--sys/amd64/include/fpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/fpu.h b/sys/amd64/include/fpu.h
index db1fe40..ae576de 100644
--- a/sys/amd64/include/fpu.h
+++ b/sys/amd64/include/fpu.h
@@ -95,6 +95,8 @@ struct savefpu {
* intermediate values are stored in memory or in FPU registers.
*/
#define __INITIAL_NPXCW__ 0x127F
+#define __INITIAL_MXCSR__ 0x1F80
+#define __INITIAL_MXCSR_MASK__ 0xFFBF
#ifdef _KERNEL
int npxdna(void);
OpenPOWER on IntegriCloud