ARM: tegra: solve adr range issue with THUMB2_KERNEL enabled
authorStephen Warren <swarren@nvidia.com>
Tue, 16 Apr 2013 17:09:09 +0000 (11:09 -0600)
committerOlof Johansson <olof@lixom.net>
Thu, 18 Apr 2013 16:35:19 +0000 (09:35 -0700)
commitc312908a10677cc866b2473f4f3fabb448bdfb64
tree3a9a0bc460eec47a22006eaf02ca5cb0c13e0250
parenta65dc10ffad1e041b4ad3559a026a8bb2b40b77e
ARM: tegra: solve adr range issue with THUMB2_KERNEL enabled

When building the kernel with CONFIG_THUMB2_KERNEL enabled, older
assemblers may emit the following error:

reset-handler.S:78: Error: invalid immediate for address calculation (value = 0x00000004)

Using an explicit adr.w instruction will solve this. Newer assemblers do
this automatically. Use the W() macro to do this under Thumb mode only.

Inspired-by: Joseph Lo <josephl@nvidia.com>
Suggested-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/sleep.h