]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signal: Add helper function to fetch quad word aligned pointer
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Mon, 20 Jul 2015 02:58:43 +0000 (08:28 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Jul 2015 01:38:29 +0000 (11:38 +1000)
commit5cf7d6f5619584970f670ef1665023697ebd4745
tree0905926503fbb2133988a2ef97eec83f37884e44
parente4370c97d5401ef937551ee2b8a515d13a793661
powerpc/signal: Add helper function to fetch quad word aligned pointer

This patch adds one helper function 'sigcontext_vmx_regs' which computes
quad word aligned pointer for 'vmx_reserve' array element in sigcontext
structure making the code more readable.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
[mpe: Reword comment and fix build for CONFIG_ALTIVEC=n]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/signal_64.c