Paul Mackerras 1c9bb1a01a [POWERPC] Fix register save area alignment for swapcontext syscall
For 32-bit processes, the getcontext side of the swapcontext system
call (i.e. the saving of the context when the first argument is
non-NULL) has to set the ctx->uc_mcontext.uc_regs pointer to the place
where it saves the registers.  Which it does, but it doesn't ensure
that the pointer is 16-byte aligned.  16-byte alignment is needed
because the Altivec/VMX registers are saved in there, and they need to
be on a 16-byte boundary.

This fixes it by ensuring the appropriate alignment of the pointer.
This issue was pointed out by Jakub Jelinek.

Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-12-20 16:37:49 +11:00
..
2006-09-11 13:32:30 -04:00
2006-11-01 14:52:48 +11:00
2006-08-25 14:56:07 +10:00
2006-08-25 14:56:07 +10:00
2006-12-11 16:35:07 +11:00
2006-12-11 16:35:07 +11:00
2006-08-08 17:08:56 +10:00
2006-12-09 11:39:06 +11:00
2006-12-11 16:35:07 +11:00
2006-12-07 08:39:24 -08:00