From: Anton Blanchard Date: Thu, 18 Sep 2014 23:40:19 +0000 (+1000) Subject: powerpc: Implement load_unaligned_zeropad X-Git-Tag: fixes-against-v3.18-rc2~117^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de5946c03575fb8c222610a6ac6726a5deabad46;p=pandora-kernel.git 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 Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed