Re: [PATCH] Start of compat32.h (again)

Ralf Baechle (ralf@linux-mips.org)
Sat, 30 Nov 2002 21:34:31 +0100


On Wed, Nov 27, 2002 at 09:29:18AM +0100, Andi Kleen wrote:

> > That is not a safe assumption. The ia64 ABI requires that a 32-bit
> > result is returned in the least-significant 32 bits only---the upper
> > 32 bits may contain garbage. It should be safe to declare the syscall
> > return type always as "long", no?
>
> But the 32bit user space surely doesn't care about any garbage in
> the upper 32bits, no ?

It does. With very few exceptions all 32-bit instructions on MIPS require
that all the register values are properly sign extended to 64-bit or the
operation of those instructions is undefined.

Ralf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/