Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch It seems that firefox includes machine/fpu.h on amd64.



details:   https://anonhg.NetBSD.org/src/rev/35bd6b2e6c80
branches:  trunk
changeset: 326802:35bd6b2e6c80
user:      dsl <dsl%NetBSD.org@localhost>
date:      Tue Feb 18 18:39:10 2014 +0000

description:
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.)

diffstat:

 sys/arch/amd64/include/fpu.h              |  14 ++++++++++++++
 sys/arch/x86/include/cpu_extended_state.h |   7 +------
 2 files changed, 15 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r 271c1b8f056a -r 35bd6b2e6c80 sys/arch/amd64/include/fpu.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/amd64/include/fpu.h      Tue Feb 18 18:39:10 2014 +0000
@@ -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
diff -r 271c1b8f056a -r 35bd6b2e6c80 sys/arch/x86/include/cpu_extended_state.h
--- a/sys/arch/x86/include/cpu_extended_state.h Tue Feb 18 16:19:28 2014 +0000
+++ b/sys/arch/x86/include/cpu_extended_state.h Tue Feb 18 18:39:10 2014 +0000
@@ -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 @@
 } __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];



Home | Main Index | Thread Index | Old Index