aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/crypto/aegis128-aesni-asm.S
diff options
context:
space:
mode:
authorGravatar Ard Biesheuvel <ardb@kernel.org> 2023-04-12 13:00:23 +0200
committerGravatar Herbert Xu <herbert@gondor.apana.org.au> 2023-04-20 18:20:04 +0800
commit9d5aef1222337f593e52293bb94c5cf7139d4d83 (patch)
tree42c6d9161552f3fc5de731a4300034bd3adca30c /arch/x86/crypto/aegis128-aesni-asm.S
parentcrypto: ixp4xx - fix building wiht 64-bit dma_addr_t (diff)
downloadlinux-9d5aef1222337f593e52293bb94c5cf7139d4d83.tar.gz
linux-9d5aef1222337f593e52293bb94c5cf7139d4d83.tar.bz2
linux-9d5aef1222337f593e52293bb94c5cf7139d4d83.zip
crypto: x86/aegis128 - Use RIP-relative addressing
Prefer RIP-relative addressing where possible, which removes the need for boot time relocation fixups. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/aegis128-aesni-asm.S')
-rw-r--r--arch/x86/crypto/aegis128-aesni-asm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/crypto/aegis128-aesni-asm.S b/arch/x86/crypto/aegis128-aesni-asm.S
index cdf3215ec272..ad7f4c891625 100644
--- a/arch/x86/crypto/aegis128-aesni-asm.S
+++ b/arch/x86/crypto/aegis128-aesni-asm.S
@@ -201,8 +201,8 @@ SYM_FUNC_START(crypto_aegis128_aesni_init)
movdqa KEY, STATE4
/* load the constants: */
- movdqa .Laegis128_const_0, STATE2
- movdqa .Laegis128_const_1, STATE1
+ movdqa .Laegis128_const_0(%rip), STATE2
+ movdqa .Laegis128_const_1(%rip), STATE1
pxor STATE2, STATE3
pxor STATE1, STATE4
@@ -682,7 +682,7 @@ SYM_TYPED_FUNC_START(crypto_aegis128_aesni_dec_tail)
punpcklbw T0, T0
punpcklbw T0, T0
punpcklbw T0, T0
- movdqa .Laegis128_counter, T1
+ movdqa .Laegis128_counter(%rip), T1
pcmpgtb T1, T0
pand T0, MSG