summaryrefslogtreecommitdiff
path: root/arch/x86/crypto/nh-avx2-x86_64.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/crypto/nh-avx2-x86_64.S')
-rw-r--r--arch/x86/crypto/nh-avx2-x86_64.S10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86/crypto/nh-avx2-x86_64.S b/arch/x86/crypto/nh-avx2-x86_64.S
index f7946ea1b704..791386d9a83a 100644
--- a/arch/x86/crypto/nh-avx2-x86_64.S
+++ b/arch/x86/crypto/nh-avx2-x86_64.S
@@ -8,6 +8,7 @@
*/
#include <linux/linkage.h>
+#include <linux/cfi_types.h>
#define PASS0_SUMS %ymm0
#define PASS1_SUMS %ymm1
@@ -65,11 +66,11 @@
/*
* void nh_avx2(const u32 *key, const u8 *message, size_t message_len,
- * u8 hash[NH_HASH_BYTES])
+ * __le64 hash[NH_NUM_PASSES])
*
* It's guaranteed that message_len % 16 == 0.
*/
-ENTRY(nh_avx2)
+SYM_TYPED_FUNC_START(nh_avx2)
vmovdqu 0x00(KEY), K0
vmovdqu 0x10(KEY), K1
@@ -153,5 +154,6 @@ ENTRY(nh_avx2)
vpaddq T1, T0, T0
vpaddq T4, T0, T0
vmovdqu T0, (HASH)
- ret
-ENDPROC(nh_avx2)
+ vzeroupper
+ RET
+SYM_FUNC_END(nh_avx2)