diff options
author | David S. Miller <davem@davemloft.net> | 2012-08-31 21:11:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-31 21:11:51 +0200 |
commit | 7cff82f5f42a938a1b633e121a41d29c81de18bb (patch) | |
tree | 80b07a1886e7f4b8caf547e9963245ca4ce75f1b /arch/sparc/crypto/md5_asm.S | |
parent | sparc64: Unroll CTR crypt loops in AES driver. (diff) | |
download | linux-7cff82f5f42a938a1b633e121a41d29c81de18bb.tar.xz linux-7cff82f5f42a938a1b633e121a41d29c81de18bb.zip |
sparc64: Avoid code duplication in crypto assembler.
Put the opcode macros in a common header
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/crypto/md5_asm.S')
-rw-r--r-- | arch/sparc/crypto/md5_asm.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/crypto/md5_asm.S b/arch/sparc/crypto/md5_asm.S index ff90903180eb..3150404e602e 100644 --- a/arch/sparc/crypto/md5_asm.S +++ b/arch/sparc/crypto/md5_asm.S @@ -1,6 +1,8 @@ #include <linux/linkage.h> #include <asm/visasm.h> +#include "opcodes.h" + ENTRY(md5_sparc64_transform) /* %o0 = digest, %o1 = data, %o2 = rounds */ VISEntryHalf @@ -21,8 +23,7 @@ ENTRY(md5_sparc64_transform) ldd [%o1 + 0x30], %f20 ldd [%o1 + 0x38], %f22 - /* md5 */ - .word 0x81b02800 + MD5 subcc %o2, 1, %o2 bne,pt %xcc, 1b @@ -58,8 +59,7 @@ ENTRY(md5_sparc64_transform) faligndata %f22, %f24, %f20 faligndata %f24, %f26, %f22 - /* md5 */ - .word 0x81b02800 + MD5 subcc %o2, 1, %o2 fsrc2 %f26, %f10 |