crypto: arm/aes-neonbs - avoid hacks to prevent Thumb2 mode switches
authorArd Biesheuvel <ardb@kernel.org>
Wed, 16 Sep 2020 12:36:40 +0000 (15:36 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:14 +0000 (17:48 +1000)
commit45a4777e5b3826cb614263b200a46d305cb95c39
tree2237b6c069abae7351cdd715c6295125f00ccaf4
parentbbf2cb1ea1e1428589d7f4d652bed15b265ce92d
crypto: arm/aes-neonbs - avoid hacks to prevent Thumb2 mode switches

Instead of using a homegrown macrofied version of the adr instruction
that sets the Thumb bit in the output value, only to ensure that any
bx instructions consuming that value will not switch out of Thumb mode
when branching, use non-interworking mov (to PC) instructions, which
achieve the same thing.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/aes-neonbs-core.S