ARM: 7837/3: fix Thumb-2 bug in AES assembler code
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 21 Sep 2013 10:23:50 +0000 (11:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 22 Sep 2013 10:43:38 +0000 (11:43 +0100)
commit40190c85f427dcfdbab5dbef4ffd2510d649da1f
tree568478c8958a1f2266dd4794b7f1c00678233ec0
parentc4a30c3b2997bbc7d81cd0f5fde43599700834f5
ARM: 7837/3: fix Thumb-2 bug in AES assembler code

Patch 638591c enabled building the AES assembler code in Thumb2 mode.
However, this code used arithmetic involving PC rather than adr{l}
instructions to generate PC-relative references to the lookup tables,
and this needs to take into account the different PC offset when
running in Thumb mode.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/crypto/aes-armv4.S