patch-2.4.20 linux-2.4.20/include/asm-mips64/asmmacro.h
Next file: linux-2.4.20/include/asm-mips64/bcache.h
Previous file: linux-2.4.20/include/asm-mips64/asm.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-mips64/asmmacro.h
- Orig date:
Sun Sep 9 10:43:02 2001
diff -urN linux-2.4.19/include/asm-mips64/asmmacro.h linux-2.4.20/include/asm-mips64/asmmacro.h
@@ -8,8 +8,22 @@
#ifndef _ASM_ASMMACRO_H
#define _ASM_ASMMACRO_H
+#include <linux/config.h>
#include <asm/offset.h>
+#ifdef CONFIG_CPU_SB1
+#define FPU_ENABLE_HAZARD \
+ .set push; \
+ .set noreorder; \
+ .set mips2; \
+ SSNOP; \
+ bnezl $0, .+4; \
+ SSNOP; \
+ .set pop
+#else
+#define FPU_ENABLE_HAZARD
+#endif
+
.macro fpu_save_16even thread tmp
cfc1 \tmp, fcr31
sdc1 $f2, (THREAD_FPU + 0x010)(\thread)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)