patch-2.4.21 linux-2.4.21/arch/sparc/kernel/trampoline.S

Next file: linux-2.4.21/arch/sparc/kernel/traps.c
Previous file: linux-2.4.21/arch/sparc/kernel/time.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/sparc/kernel/trampoline.S linux-2.4.21/arch/sparc/kernel/trampoline.S
@@ -63,8 +63,8 @@
 	and	%g4, 0xc, %g4
 	ld	[%g5 + %g4], %g6
 
-	sethi	%hi(TASK_UNION_SIZE - REGWIN_SZ), %sp
-	or	%sp, %lo(TASK_UNION_SIZE - REGWIN_SZ), %sp
+	sethi	%hi(TASK_UNION_SIZE - STACKFRAME_SZ), %sp
+	or	%sp, %lo(TASK_UNION_SIZE - STACKFRAME_SZ), %sp
 	add	%g6, %sp, %sp
 
 	/* Turn on traps (PSR_ET). */
@@ -140,8 +140,8 @@
 	srl	%g3, 1, %g4
 	ld	[%g5 + %g4], %g6
 
-	sethi	%hi(TASK_UNION_SIZE - REGWIN_SZ), %sp
-	or	%sp, %lo(TASK_UNION_SIZE - REGWIN_SZ), %sp
+	sethi	%hi(TASK_UNION_SIZE - STACKFRAME_SZ), %sp
+	or	%sp, %lo(TASK_UNION_SIZE - STACKFRAME_SZ), %sp
 	add	%g6, %sp, %sp
 
 	/* Turn on traps (PSR_ET). */

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