patch-2.4.27 linux-2.4.27/arch/x86_64/ia32/ia32entry.S

Next file: linux-2.4.27/arch/x86_64/kernel/Makefile
Previous file: linux-2.4.27/arch/x86_64/boot/bootsect.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/arch/x86_64/ia32/ia32entry.S linux-2.4.27/arch/x86_64/ia32/ia32entry.S
@@ -71,7 +71,7 @@
 	movq %rsp,%rdi        /* &pt_regs -> arg1 */
 	call syscall_trace
 	LOAD_ARGS ARGOFFSET  /* reload args from stack in case ptrace changed it */
-	addq $ARGOFFSET,%rsp	
+	RESTORE_REST
 	cmpl $(IA32_NR_syscalls),%eax
 	jae  1f
 	IA32_ARG_FIXUP
@@ -81,7 +81,7 @@
 1:	SAVE_REST
 	movq %rsp,%rdi		/* &pt_regs -> arg1 */ 
 	call syscall_trace
-	addq $ARGOFFSET,%rsp
+	RESTORE_REST
 	jmp int_ret_from_sys_call
 		
 ia32_badsys:

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