aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/mm/wild_bctr.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-11-15 12:34:27 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-11-15 14:48:43 +1100
commit66f93c5a02d5ba6ef17fef459143961382593212 (patch)
tree28698e7d100f525b169a199a11fa8c25a8bbf92e /tools/testing/selftests/powerpc/mm/wild_bctr.c
parentpowerpc/numa: Suppress "VPHN is not supported" messages (diff)
downloadlinux-dev-66f93c5a02d5ba6ef17fef459143961382593212.tar.xz
linux-dev-66f93c5a02d5ba6ef17fef459143961382593212.zip
powerpc/64: Fix kernel stack 16-byte alignment
Commit 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather than thread_struct") changed sizeof(struct pt_regs) % 16 from 0 to 8, which causes the interrupt frame allocation on kernel entry to put the kernel stack out of alignment. Quadword (16-byte) alignment for the stack is required by both the 64-bit v1 ABI (v1.9 § 3.2.2) and the 64-bit v2 ABI (v1.1 § 2.2.2.1). Add a pad field to fix alignment, and add a BUILD_BUG_ON to catch this in future. Fixes: 4c2de74cc869 ("powerpc/64: Interrupts save PPR on stack rather than thread_struct") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions