diff options
author | Anshuman Khandual <khandual@linux.vnet.ibm.com> | 2015-07-06 15:55:33 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-07-16 16:14:40 +1000 |
commit | 4c576229ac371bc9d96f2b365ebcd296aa266cec (patch) | |
tree | acf359c1bab5977bbd5a309fce846512e27bb8d7 | |
parent | 829023df86d4ec39b110860cd5f106b7ac58f772 (diff) | |
download | op-kernel-dev-4c576229ac371bc9d96f2b365ebcd296aa266cec.zip op-kernel-dev-4c576229ac371bc9d96f2b365ebcd296aa266cec.tar.gz |
powerpc/signal: Fix confusing header documentation in sigcontext.h
Commit ce48b2100785 "powerpc: Add VSX context save/restore, ptrace and
signal support" expanded the 'vmx_reserve' array element to contain 101
double words, but the comment block above was not updated.
Also reorder the constants in the array size declaration to reflect the
logic mentioned in the comment block above. This change helps in
explaining how the HW registers are represented in the array. But no
functional change.
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
[mpe: Reworded change log and added whitespace around +'s]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/include/uapi/asm/sigcontext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/uapi/asm/sigcontext.h b/arch/powerpc/include/uapi/asm/sigcontext.h index 9c1f24f..3ad0c7f 100644 --- a/arch/powerpc/include/uapi/asm/sigcontext.h +++ b/arch/powerpc/include/uapi/asm/sigcontext.h @@ -28,7 +28,7 @@ struct sigcontext { /* * To maintain compatibility with current implementations the sigcontext is * extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t) - * followed by an unstructured (vmx_reserve) field of 69 doublewords. This + * followed by an unstructured (vmx_reserve) field of 101 doublewords. This * allows the array of vector registers to be quadword aligned independent of * the alignment of the containing sigcontext or ucontext. It is the * responsibility of the code setting the sigcontext to set this pointer to @@ -80,7 +80,7 @@ struct sigcontext { * registers and vscr/vrsave. */ elf_vrreg_t __user *v_regs; - long vmx_reserve[ELF_NVRREG+ELF_NVRREG+32+1]; + long vmx_reserve[ELF_NVRREG + ELF_NVRREG + 1 + 32]; #endif }; |