[PATCH] PPC INTERNAL_SYSCALL fix

Steve Munroe sjmunroe@us.ibm.com
Fri May 7 21:51:00 GMT 2004


This patch fixes a problem in sched_setaffinity where the the usage:

INTERNAL_SYSCALL (sched_getaffinity, err, 3, getpid(), psize, p)

calls the getpid() function in the middle of the syscall setup. This 
clobbered the r0 value which is the syscall#.

This patch assigns all parms to temporary longs before setting up the 
syscall. This insures that the getpid() is complete before the syscall 
is expanded.

Thanks to Marcus Meisser for finding this.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-sysdep-20040504.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040507/492c0284/attachment.txt>


More information about the Libc-alpha mailing list