From: Will Deacon Date: Tue, 5 Nov 2013 10:16:52 +0000 (+0000) Subject: arm64: module: ensure instruction is little-endian before manipulation X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~54^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=122e2fa0d310d262cb85cf0b003032e5d2bc2ae7;p=pandora-kernel.git arm64: module: ensure instruction is little-endian before manipulation Relocations that require an instruction immediate to be re-encoded must ensure that the instruction pattern is represented in a little-endian format for the manipulation code to work correctly. This patch converts the loaded instruction into native-endianess prior to encoding and then converts back to little-endian byteorder before updating memory. Signed-off-by: Will Deacon Tested-by: Matthew Leach Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed