summaryrefslogtreecommitdiffstats
path: root/sys/compat/ia32
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2012-03-16 20:24:30 +0000
committertijl <tijl@FreeBSD.org>2012-03-16 20:24:30 +0000
commit9c671fcacaa05105013becd8a9a70514228bb3fd (patch)
treefd1d230ecbf75adf9d32622c24cc4e97a58dd02c /sys/compat/ia32
parent9d9a56e6efa88f739b0da929f728b3510a1b9ea6 (diff)
downloadFreeBSD-src-9c671fcacaa05105013becd8a9a70514228bb3fd.zip
FreeBSD-src-9c671fcacaa05105013becd8a9a70514228bb3fd.tar.gz
Move userland bits of i386 npx.h and amd64 fpu.h to x86 fpu.h.
Remove FPU types from compat/ia32/ia32_reg.h that are no longer needed. Create machine/npx.h on amd64 to allow compiling i386 code that uses this header. The original npx.h and fpu.h define struct envxmm differently. Both definitions have been included in the new x86 header as struct __envxmm32 and struct __envxmm64. During compilation either __envxmm32 or __envxmm64 is defined as envxmm depending on machine architecture. On amd64 the i386 struct is also available as struct envxmm32. Reviewed by: kib
Diffstat (limited to 'sys/compat/ia32')
-rw-r--r--sys/compat/ia32/ia32_reg.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/sys/compat/ia32/ia32_reg.h b/sys/compat/ia32/ia32_reg.h
index b930197..5fb7c30 100644
--- a/sys/compat/ia32/ia32_reg.h
+++ b/sys/compat/ia32/ia32_reg.h
@@ -78,33 +78,6 @@ struct dbreg32 {
unsigned int dr[8]; /* debug registers */
};
-/* Environment information of floating point unit */
-struct env87 {
- int en_cw; /* control word (16bits) */
- int en_sw; /* status word (16bits) */
- int en_tw; /* tag word (16bits) */
- int en_fip; /* floating point instruction pointer */
- u_short en_fcs; /* floating code segment selector */
- u_short en_opcode; /* opcode last executed (11 bits ) */
- int en_foo; /* floating operand offset */
- int en_fos; /* floating operand segment selector */
-};
-
-#ifdef __ia64__
-/* Layout of an x87 fpu register (amd64 gets this elsewhere) */
-struct fpacc87 {
- u_char fp_bytes[10];
-};
-#endif
-
-/* Floating point context */
-struct save87 {
- struct env87 sv_env; /* floating point control/status */
- struct fpacc87 sv_ac[8]; /* accumulator contents, 0-7 */
- u_char sv_pad0[4]; /* padding for (now unused) saved status word */
- u_char sv_pad[64]; /* padding; used by emulators */
-};
-
/*
* Wrappers and converters.
*/
OpenPOWER on IntegriCloud