summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMichael Ellerman2017-05-19 03:29:04 +0200
committerMichael Ellerman2017-05-19 11:46:34 +0200
commitfe06fe860250a4f01d0eaf70a2563b1997174a74 (patch)
tree0bcce900e1a98434d35aa9bf6e9a4dfccc80d800 /arch/powerpc
parentpowerpc/mm: Fix virt_addr_valid() etc. on 64-bit hash (diff)
downloadkernel-qcow2-linux-fe06fe860250a4f01d0eaf70a2563b1997174a74.tar.gz
kernel-qcow2-linux-fe06fe860250a4f01d0eaf70a2563b1997174a74.tar.xz
kernel-qcow2-linux-fe06fe860250a4f01d0eaf70a2563b1997174a74.zip
selftests/powerpc: Fix TM resched DSCR test with some compilers
The tm-resched-dscr test has started failing sometimes, depending on what compiler it's built with, eg: test: tm_resched_dscr Check DSCR TM context switch: tm-resched-dscr: tm-resched-dscr.c:76: test_body: Assertion `rv' failed. !! child died by signal 6 When it fails we see that the compiler doesn't initialise rv to 1 before entering the inline asm block. Although that's counter intuitive, it is allowed because we tell the compiler that the inline asm will write to rv (using "=r"), meaning the original value is irrelevant. Marking it as a read/write parameter would presumably work, but it seems simpler to fix it by setting the initial value of rv in the inline asm. Fixes: 96d016108640 ("powerpc: Correct DSCR during TM context switch") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Michael Neuling <mikey@neuling.org>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions