diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-28 22:26:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-02-28 22:26:06 +0000 |
commit | a2a9ad31fadd8dfd0e5b705aa2d84a16a5086d6c (patch) | |
tree | 3b9f3ad6a0c96a2b78e69dd12866655e29c44653 /sys/arch/amd64 | |
parent | c66883a789ea3974cefa5b77aea73dc27e8754ef (diff) |
rename our NPXCW setting
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/include/fpu.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 72bcb8275cd..6d62a9931dc 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.17 2004/02/27 23:45:23 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.18 2004/02/28 22:26:05 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */ /*- @@ -1139,7 +1139,7 @@ setregs(struct proc *p, struct exec_package *pack, u_long stack, p->p_md.md_flags &= ~MDP_USEDFPU; pcb->pcb_flags = 0; - pcb->pcb_savefpu.fp_fxsave.fx_fcw = __NetBSD_NPXCW__; + pcb->pcb_savefpu.fp_fxsave.fx_fcw = __OpenBSD_NPXCW__; pcb->pcb_savefpu.fp_fxsave.fx_mxcsr = __INITIAL_MXCSR__; pcb->pcb_savefpu.fp_fxsave.fx_mxcsr_mask = __INITIAL_MXCSR_MASK__; diff --git a/sys/arch/amd64/include/fpu.h b/sys/arch/amd64/include/fpu.h index a7952df5d54..57a2b19ef13 100644 --- a/sys/arch/amd64/include/fpu.h +++ b/sys/arch/amd64/include/fpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */ +/* $OpenBSD: fpu.h,v 1.2 2004/02/28 22:26:05 deraadt Exp $ */ /* $NetBSD: fpu.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */ #ifndef _AMD64_FPU_H_ @@ -7,7 +7,7 @@ #include <sys/types.h> /* - * NetBSD/amd64 only uses the extended save/restore format used + * amd64 only uses the extended save/restore format used * by fxsave/fsrestore, to always deal with the SSE registers, * which are part of the ABI to pass floating point values. * Must be stored in memory on a 16-byte boundary. @@ -42,8 +42,8 @@ struct savefpu { #define __INITIAL_MXCSR__ 0x1f80 #define __INITIAL_MXCSR_MASK__ 0xffbf -/* NetBSD uses IEEE double precision. */ -#define __NetBSD_NPXCW__ 0x127f +/* OpenBSD uses IEEE double precision. */ +#define __OpenBSD_NPXCW__ 0x127f /* Linux just uses the default control word. */ #define __Linux_NPXCW__ 0x037f |