[PATCH] powerpc/setjmp: Fix 64-bit support

Corinna Vinschen vinschen@redhat.com
Thu Oct 27 16:09:52 GMT 2022


On Oct 27 09:17, Sebastian Huber wrote:
> The first attempt to support the 64-bit mode had two bugs:
> 
> 1. The saved general-purpose register 31 value was overwritten with the saved
>    link register value.
> 
> 2. The link register was saved and restored using 32-bit instructions.
> 
> Use 64-bit store/load instructions to save/restore the link register.  Make
> sure that the general-purpose register 31 and the link register storage areas
> do not overlap.

LGTM, but I'm not a PowerPC expert.  If you tested it, feel free to push.


Thanks,
Corinna



More information about the Newlib mailing list