[parisc-linux] [PATCH] ELF32 userspace, ELF64 kernel, and 32-bit signals on hppa. (help needed)

Carlos O'Donell carlos@baldric.uwo.ca
Wed, 3 Dec 2003 15:25:46 -0500


On Wed, Dec 03, 2003 at 02:21:26AM -0500, Carlos O'Donell wrote:
> 
> parisc,
> 
> *** Help needed, code broken ...  ***
> 
> There is a bug hiding in the code... I can't find it yet.
> Userspace sorta works, but sometimes processes go splat, and I think it
> has to do with the following:
> 
> - In restore_context32 I have to ship the 32-bit value into a 64-bit
>   registers. Should it be sign extended?
> = I think yes.
> - Is stack address 0xfffffffffaf00410 the same as 0x00000000faf00410?
> = No?

This turned out to be the issue. I just did a zero-extended load into an
unsigned variable and *everything* works now. I need to go into more
testing now.

c.