patch-2.4.19 linux-2.4.19/include/asm-mips/stackframe.h

Next file: linux-2.4.19/include/asm-mips/string.h
Previous file: linux-2.4.19/include/asm-mips/spinlock.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-mips/stackframe.h linux-2.4.19/include/asm-mips/stackframe.h
@@ -9,12 +9,12 @@
 #ifndef __ASM_STACKFRAME_H
 #define __ASM_STACKFRAME_H
 
+#include <linux/config.h>
 #include <asm/addrspace.h>
 #include <asm/mipsregs.h>
 #include <asm/processor.h>
 #include <asm/asm.h>
 #include <asm/offset.h>
-#include <linux/config.h>
 
 #define SAVE_AT                                          \
 		.set	push;                            \
@@ -48,33 +48,6 @@
 		sw	$23, PT_R23(sp);                 \
 		sw	$30, PT_R30(sp)
 
-#define __str2(x) #x
-#define __str(x) __str2(x)
-
-#define save_static_function(symbol)                                    \
-__asm__ (                                                               \
-        ".globl\t" #symbol "\n\t"                                       \
-        ".align\t2\n\t"                                                 \
-        ".type\t" #symbol ", @function\n\t"                             \
-        ".ent\t" #symbol ", 0\n"                                        \
-        #symbol":\n\t"                                                  \
-        ".frame\t$29, 0, $31\n\t"                                       \
-        "sw\t$16,"__str(PT_R16)"($29)\t\t\t# save_static_function\n\t"  \
-        "sw\t$17,"__str(PT_R17)"($29)\n\t"                              \
-        "sw\t$18,"__str(PT_R18)"($29)\n\t"                              \
-        "sw\t$19,"__str(PT_R19)"($29)\n\t"                              \
-        "sw\t$20,"__str(PT_R20)"($29)\n\t"                              \
-        "sw\t$21,"__str(PT_R21)"($29)\n\t"                              \
-        "sw\t$22,"__str(PT_R22)"($29)\n\t"                              \
-        "sw\t$23,"__str(PT_R23)"($29)\n\t"                              \
-        "sw\t$30,"__str(PT_R30)"($29)\n\t"                              \
-        ".end\t" #symbol "\n\t"                                         \
-        ".size\t" #symbol",. - " #symbol)
-
-/* Used in declaration of save_static functions.  */
-#define static_unused static __attribute__((unused))
-
-
 #ifdef CONFIG_SMP
 #  define GET_SAVED_SP                                   \
                 mfc0    k0, CP0_CONTEXT;                 \
@@ -163,7 +136,7 @@
 		lw	$23, PT_R23(sp);                 \
 		lw	$30, PT_R30(sp)
 
-#if defined(CONFIG_CPU_R3000)
+#if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX)
 
 #define RESTORE_SOME                                     \
 		.set	push;                            \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)