From: Ben Dooks Date: Thu, 25 Jul 2013 13:38:03 +0000 (+0100) Subject: ARM: Correct BUG() assembly to ensure it is endian-agnostic X-Git-Tag: v3.13-rc1~103^2~1^2~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63328070eff2f4fd730c86966a0dbc976147c39f;p=pandora-kernel.git ARM: Correct BUG() assembly to ensure it is endian-agnostic Currently BUG() uses .word or .hword to create the necessary illegal instructions. However if we are building BE8 then these get swapped by the linker into different illegal instructions in the text. This means that the BUG() macro does not get trapped properly. Change to using to provide the necessary ARM instruction building as we cannot rely on gcc/gas having the `.inst` instructions which where added to try and resolve this issue (reported by Dave Martin ). Signed-off-by: Ben Dooks Reviewed-by: Dave Martin --- Reading git-diff-tree failed