aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/primitives/word-at-a-time.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-09-19 09:40:19 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2014-09-30 14:59:12 +1000
commitde5946c03575fb8c222610a6ac6726a5deabad46 (patch)
tree9df28ec080f641f05aa2440b66284a2cbf18ccf2 /tools/testing/selftests/powerpc/primitives/word-at-a-time.h
parentpowerpc: pci-ioda: Use a single function to emit logging messages (diff)
downloadlinux-dev-de5946c03575fb8c222610a6ac6726a5deabad46.tar.xz
linux-dev-de5946c03575fb8c222610a6ac6726a5deabad46.zip
powerpc: Implement load_unaligned_zeropad
Implement a bi-arch and bi-endian version of load_unaligned_zeropad. Since the fallback case is so rare, a userspace test harness was used to test this on ppc64le, ppc64 and ppc32: http://ozlabs.org/~anton/junkcode/test_load_unaligned_zeropad.c It uses mprotect to force a SEGV across a page boundary, and a SEGV handler to lookup the exception tables and run the fixup routine. It also compares the result against a normal load. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/primitives/word-at-a-time.h')
0 files changed, 0 insertions, 0 deletions