Module Name:    src
Committed By:   dsl
Date:           Tue Feb 18 18:39:11 UTC 2014

Modified Files:
        src/sys/arch/x86/include: cpu_extended_state.h
Added Files:
        src/sys/arch/amd64/include: fpu.h

Log Message:
It seems that firefox includes machine/fpu.h on amd64.
Add the file back so that the firwfox source doesn't have to depend
on the version of netbsd it is being compiled for.
(The i386 version doesn't play the same games in its SIGFPE handler.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.14 src/sys/arch/amd64/include/fpu.h
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x86/include/cpu_extended_state.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/include/cpu_extended_state.h
diff -u src/sys/arch/x86/include/cpu_extended_state.h:1.7 src/sys/arch/x86/include/cpu_extended_state.h:1.8
--- src/sys/arch/x86/include/cpu_extended_state.h:1.7	Sat Feb 15 10:11:15 2014
+++ src/sys/arch/x86/include/cpu_extended_state.h	Tue Feb 18 18:39:10 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu_extended_state.h,v 1.7 2014/02/15 10:11:15 dsl Exp $	*/
+/*	$NetBSD: cpu_extended_state.h,v 1.8 2014/02/18 18:39:10 dsl Exp $	*/
 
 #ifndef _X86_CPU_EXTENDED_STATE_H_
 #define _X86_CPU_EXTENDED_STATE_H_
@@ -115,11 +115,6 @@ struct fxsave {
 } __aligned(16);
 __CTASSERT_NOLINT(sizeof (struct fxsave) == 512);
 
-#ifndef _KERNEL
-/* Backwards compatibility for firefox (looks at fx_xmm) */
-#define fxsave64 fxsave
-#endif
-
 /* The end of the fsave buffer can be used by the operating system */
 struct fxsave_os {
 	uint8_t		fxo_fxsave[512 - 48];

Added files:

Index: src/sys/arch/amd64/include/fpu.h
diff -u /dev/null src/sys/arch/amd64/include/fpu.h:1.14
--- /dev/null	Tue Feb 18 18:39:11 2014
+++ src/sys/arch/amd64/include/fpu.h	Tue Feb 18 18:39:11 2014
@@ -0,0 +1,14 @@
+#ifndef _AMD64_FPU_H_
+#define _AMD64_FPU_H_
+
+/*
+ * This file is only present for backwards compatibility with
+ * a few user programs, particularly firefox.
+ */
+
+#ifndef _KERNEL
+#define fxsave64 fxsave
+#include <x86/cpu_extended_state.h>
+#endif
+
+#endif

Reply via email to