crypto: arm64/crct10dif - use frame_push/pop macros consistently
authorArd Biesheuvel <ardb@kernel.org>
Tue, 29 Nov 2022 16:48:51 +0000 (17:48 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Dec 2022 10:45:00 +0000 (18:45 +0800)
Use the frame_push and frame_pop macros to set up the stack frame so
that return address protections will be enabled automically when
configured.

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

index dce6dcebfca189ee4f99d8c7ee03c00cc879f878..5604de61d06d04eeac8fb616859098b53a8cedd8 100644 (file)
@@ -429,7 +429,7 @@ CPU_LE(     ext             v0.16b, v0.16b, v0.16b, #8      )
 
        umov            w0, v0.h[0]
        .ifc            \p, p8
-       ldp             x29, x30, [sp], #16
+       frame_pop
        .endif
        ret
 
@@ -466,8 +466,7 @@ CPU_LE(     ext             v7.16b, v7.16b, v7.16b, #8      )
 // Assumes len >= 16.
 //
 SYM_FUNC_START(crc_t10dif_pmull_p8)
-       stp             x29, x30, [sp, #-16]!
-       mov             x29, sp
+       frame_push      1
        crc_t10dif_pmull p8
 SYM_FUNC_END(crc_t10dif_pmull_p8)