Tue Feb 18 18:39:11 2014 UTC ()
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.)


(dsl)
diff -r0 -r1.14 src/sys/arch/amd64/include/fpu.h
diff -r1.7 -r1.8 src/sys/arch/x86/include/cpu_extended_state.h

File Added: src/sys/arch/amd64/include/fpu.h
#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

cvs diff -r1.7 -r1.8 src/sys/arch/x86/include/cpu_extended_state.h (expand / switch to context diff)
--- src/sys/arch/x86/include/cpu_extended_state.h 2014/02/15 10:11:15 1.7
+++ src/sys/arch/x86/include/cpu_extended_state.h 2014/02/18 18:39:10 1.8
@@ -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_
@@ -114,11 +114,6 @@
 	uint8_t		fx_kernel[48];	/* Not written by the hardware */
 } __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 {