Re: [PATCH] PPC: fix stack alignment for signal handlers

2005-01-22 Thread Paul Mackerras
Roland McGrath writes: > For PPC32 signal handlers, while the frame itself was of properly aligned > size, no alignment of the starting stack pointer was done at all, so that a > signal handler can still get a misaligned stack pointer if the interrupted > registers had one, though the kernel isn't

[PATCH] PPC: fix stack alignment for signal handlers

2005-01-21 Thread Roland McGrath
Both the PPC32 and PPC64 ABIs specify that the stack should be kept aligned to 16 bytes. However, signal handlers on PPC64 are getting run with the stack misaligned (sp % 16 == 8). This patch fixes that by ensuring that the signal frame allocated is a multiple of 16 bytes. The PPC32 signal frame