Bug on syscall error test for 64 bits apps
Segher Boessenkool
segher at kernel.crashing.org
Mon Mar 29 19:50:10 EST 2004
> It seems that we have a bug in the syscall exit code path, where
> @@ -139,7 +139,7 @@
> 91:
> #endif
> li r10,-_LAST_ERRNO
> - cmpl 0,r3,r10
> + cmpld 0,r3,r10
> blt 30f
> neg r3,r3
> 22: ld r10,_CCR(r1) /* Set SO bit in CR */
Patch looks fine to me.
Also, cmpl with three arguments is not a legal PowerPC instruction,
only a POWER instruction. I can't find any GAS flag to stop it
assembling POWER-only instructions/mnemonics, though.
binutils bug.
Segher
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list