patch-2.4.23 linux-2.4.23/arch/ppc/kernel/entry.S

Next file: linux-2.4.23/arch/ppc/kernel/head.S
Previous file: linux-2.4.23/arch/ppc/kernel/cputable.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/ppc/kernel/entry.S linux-2.4.23/arch/ppc/kernel/entry.S
@@ -258,6 +258,15 @@
 	addi	r1,r1,INT_FRAME_SIZE
 	blr
 
+	.globl	syscall_direct_return
+syscall_direct_return:
+	addi	r1,r3,-STACK_FRAME_OVERHEAD
+	lwz	r10,TASK_PTRACE(r2)
+	andi.	r10,r10,PT_TRACESYS
+	beq+	ret_from_except
+	bl	syscall_trace
+	b	ret_from_except
+
 	.globl	ret_from_fork
 ret_from_fork:
 	bl	schedule_tail

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