]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb0270507d6050f60a05412ba0577d84ccec9ed8
tree568478c8958a1f2266dd4794b7f1c00678233ec0
parente5058f4f01dbb94c6d48bee6cb78768b30d15674
ARM: 7837/3: fix Thumb-2 bug in AES assembler code

Patch 7352330 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