patch-2.4.25 linux-2.4.25/include/asm-mips64/stackframe.h

Next file: linux-2.4.25/include/asm-mips64/system.h
Previous file: linux-2.4.25/include/asm-mips64/sn/addrs.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/include/asm-mips64/stackframe.h linux-2.4.25/include/asm-mips64/stackframe.h
@@ -18,27 +18,6 @@
 #include <asm/processor.h>
 #include <asm/addrspace.h>
 
-#ifndef __ASSEMBLY__
-
-#define __str2(x) #x
-#define __str(x) __str2(x)
-
-#define save_static(frame)                               \
-	__asm__ __volatile__(                            \
-		"sd\t$16,"__str(PT_R16)"(%0)\n\t"        \
-		"sd\t$17,"__str(PT_R17)"(%0)\n\t"        \
-		"sd\t$18,"__str(PT_R18)"(%0)\n\t"        \
-		"sd\t$19,"__str(PT_R19)"(%0)\n\t"        \
-		"sd\t$20,"__str(PT_R20)"(%0)\n\t"        \
-		"sd\t$21,"__str(PT_R21)"(%0)\n\t"        \
-		"sd\t$22,"__str(PT_R22)"(%0)\n\t"        \
-		"sd\t$23,"__str(PT_R23)"(%0)\n\t"        \
-		"sd\t$30,"__str(PT_R30)"(%0)\n\t"        \
-		: /* No outputs */                       \
-		: "r" (frame))
-
-#endif /* !__ASSEMBLY__ */
-
 #ifdef __ASSEMBLY__
 
 		.macro	SAVE_AT
@@ -50,8 +29,6 @@
 
 		.macro	SAVE_TEMP
 		mfhi	v1
-		sd	$8, PT_R8(sp)
-		sd	$9, PT_R9(sp)
 		sd	v1, PT_HI(sp)
 		mflo	v1
 		sd	$10, PT_R10(sp)
@@ -135,6 +112,8 @@
 		sd	$6, PT_R6(sp)
 		dmfc0	v1, CP0_EPC
 		sd	$7, PT_R7(sp)
+		sd	$8, PT_R8(sp)
+		sd	$9, PT_R9(sp)
 		sd	v1, PT_EPC(sp)
 		sd	$25, PT_R25(sp)
 		sd	$28, PT_R28(sp)
@@ -164,8 +143,6 @@
 
 		.macro	RESTORE_TEMP
 		ld	$24, PT_LO(sp)
-		ld	$8, PT_R8(sp)
-		ld	$9, PT_R9(sp)
 		mtlo	$24
 		ld	$24, PT_HI(sp)
 		ld	$10, PT_R10(sp)
@@ -210,6 +187,8 @@
 		ld	$31, PT_R31(sp)
 		ld	$28, PT_R28(sp)
 		ld	$25, PT_R25(sp)
+		ld	$9,  PT_R9(sp)
+		ld	$8,  PT_R8(sp)
 		ld	$7,  PT_R7(sp)
 		ld	$6,  PT_R6(sp)
 		ld	$5,  PT_R5(sp)

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