Bad code path in DoSyscall
Paul Mackerras
paulus at samba.org
Tue Nov 11 11:14:44 EST 2003
John Whitney writes:
> There seems to be a bad code path in the assembly routine DoSyscall()
> (arch/ppc/kernel/entry.S).
You're right, good catch. The patch below should fix it.
Paul.
diff -urN linux-2.5/arch/ppc/kernel/entry.S pmac-2.5/arch/ppc/kernel/entry.S
--- linux-2.5/arch/ppc/kernel/entry.S 2003-09-27 19:46:43.000000000 +1000
+++ pmac-2.5/arch/ppc/kernel/entry.S 2003-11-11 09:29:34.000000000 +1100
@@ -233,8 +233,8 @@
SYNC
RFI
-66: li r3,ENOSYS
- b 22b
+66: li r3,-ENOSYS
+ b ret_from_syscall
.globl ret_from_fork
ret_from_fork:
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list