ARM: 7883/1: fix mov to mvn conversion in case of 64 bit phys_addr_t and BE
authorVictor Kamensky <victor.kamensky@linaro.org>
Thu, 7 Nov 2013 07:42:42 +0000 (08:42 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 14 Nov 2013 11:13:09 +0000 (11:13 +0000)
commitd9a790df8e984b143e71ca429316064adaecf65c
tree67c2649eb8230cc4b1b064e64fb5701554db508a
parent139cc2ba7400dab80228a2bfa683e2f49cf5d3ff
ARM: 7883/1: fix mov to mvn conversion in case of 64 bit phys_addr_t and BE

Fix patching code to convert mov instruction into mvn instruction
in case of CONFIG_ARCH_PHYS_ADDR_T_64BIT and CONFIG_ARM_PATCH_PHYS_VIRT.

In BE case store into r0 proper bits so byte swapped instruction
could be modified correctly.

Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Reviewed-by: R Sricharan <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/head.S