]> asedeno.scripts.mit.edu Git - linux.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)
commit2476c09f391eddb546a73fef9f6ab86886a9f2b1
tree0905926503fbb2133988a2ef97eec83f37884e44
parent4c576229ac371bc9d96f2b365ebcd296aa266cec
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