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

From: Ralf Baechle (ralf@linux-mips.org)
Date: Sat Nov 30 2002 - 15:34:31 EST


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/



This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:24 EST