sparc64: Avoid code duplication in crypto assembler.
Put the opcode macros in a common header Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/visasm.h>
|
||||
|
||||
#include "opcodes.h"
|
||||
|
||||
ENTRY(sha256_sparc64_transform)
|
||||
/* %o0 = digest, %o1 = data, %o2 = rounds */
|
||||
VISEntryHalf
|
||||
@@ -25,8 +27,7 @@ ENTRY(sha256_sparc64_transform)
|
||||
ldd [%o1 + 0x30], %f20
|
||||
ldd [%o1 + 0x38], %f22
|
||||
|
||||
/* sha256 */
|
||||
.word 0x81b02840
|
||||
SHA256
|
||||
|
||||
subcc %o2, 1, %o2
|
||||
bne,pt %xcc, 1b
|
||||
@@ -66,8 +67,7 @@ ENTRY(sha256_sparc64_transform)
|
||||
faligndata %f22, %f24, %f20
|
||||
faligndata %f24, %f26, %f22
|
||||
|
||||
/* sha256 */
|
||||
.word 0x81b02840
|
||||
SHA256
|
||||
|
||||
subcc %o2, 1, %o2
|
||||
fsrc2 %f26, %f10
|
||||
|
Reference in New Issue
Block a user