diff options
author | peter <peter@FreeBSD.org> | 2003-05-09 18:28:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-05-09 18:28:05 +0000 |
commit | 31356c64a85c099318415ca5479ed30f778f207c (patch) | |
tree | a5d247d83865587b54715fa5527f48c22bc8c720 /sys/amd64 | |
parent | 9bc9519226a0b7b469e7a5a570c5627287aa4702 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/include/fpu.h | 2 | ||||
-rw-r--r-- | sys/amd64/include/npx.h | 2 |
2 files changed, 4 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); diff --git a/sys/amd64/include/npx.h b/sys/amd64/include/npx.h index db1fe40..ae576de 100644 --- a/sys/amd64/include/npx.h +++ b/sys/amd64/include/npx.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); |