diff options
author | Anton Blanchard <anton@samba.org> | 2014-09-19 03:40:19 +0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-09-30 08:59:12 +0400 |
commit | de5946c03575fb8c222610a6ac6726a5deabad46 (patch) | |
tree | 9df28ec080f641f05aa2440b66284a2cbf18ccf2 /tools/testing/selftests/powerpc/primitives/asm/ppc-opcode.h | |
parent | 6d31c2fa0eee89e31ca48a66ccfaf71ef545c474 (diff) | |
download | linux-de5946c03575fb8c222610a6ac6726a5deabad46.tar.xz |
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/asm/ppc-opcode.h')
0 files changed, 0 insertions, 0 deletions