From: Paul Mackerras Date: Wed, 20 Dec 2006 02:57:06 +0000 (+1100) Subject: [POWERPC] Fix register save area alignment for swapcontext syscall X-Git-Tag: v2.6.20-rc2~84^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9bb1a01ac1bc92a0d98cf3e40a7922ee684dc0;p=pandora-kernel.git [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 --- Reading git-diff-tree failed