Commit 3e5e5107 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/crypto,chacha: use SYM* macros instead of ENTRY(), etc.

Consistently use the SYM* family of macros instead of the
deprecated ENTRY(), ENDPROC(), etc. family of macros.
Acked-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent ac0c06a1
...@@ -13,27 +13,28 @@ ...@@ -13,27 +13,28 @@
#define SP %r15 #define SP %r15
#define FRAME (16 * 8 + 4 * 8) #define FRAME (16 * 8 + 4 * 8)
.data .data
.align 32 .balign 32
.Lsigma:
.long 0x61707865,0x3320646e,0x79622d32,0x6b206574 # endian-neutral
.long 1,0,0,0
.long 2,0,0,0
.long 3,0,0,0
.long 0x03020100,0x07060504,0x0b0a0908,0x0f0e0d0c # byte swap
.long 0,1,2,3
.long 0x61707865,0x61707865,0x61707865,0x61707865 # smashed sigma
.long 0x3320646e,0x3320646e,0x3320646e,0x3320646e
.long 0x79622d32,0x79622d32,0x79622d32,0x79622d32
.long 0x6b206574,0x6b206574,0x6b206574,0x6b206574
.previous SYM_DATA_START_LOCAL(sigma)
.long 0x61707865,0x3320646e,0x79622d32,0x6b206574 # endian-neutral
.long 1,0,0,0
.long 2,0,0,0
.long 3,0,0,0
.long 0x03020100,0x07060504,0x0b0a0908,0x0f0e0d0c # byte swap
.long 0,1,2,3
.long 0x61707865,0x61707865,0x61707865,0x61707865 # smashed sigma
.long 0x3320646e,0x3320646e,0x3320646e,0x3320646e
.long 0x79622d32,0x79622d32,0x79622d32,0x79622d32
.long 0x6b206574,0x6b206574,0x6b206574,0x6b206574
SYM_DATA_END(sigma)
.previous
GEN_BR_THUNK %r14 GEN_BR_THUNK %r14
.text .text
############################################################################# #############################################################################
# void chacha20_vx_4x(u8 *out, counst u8 *inp, size_t len, # void chacha20_vx_4x(u8 *out, counst u8 *inp, size_t len,
...@@ -78,10 +79,10 @@ ...@@ -78,10 +79,10 @@
#define XT2 %v29 #define XT2 %v29
#define XT3 %v30 #define XT3 %v30
ENTRY(chacha20_vx_4x) SYM_FUNC_START(chacha20_vx_4x)
stmg %r6,%r7,6*8(SP) stmg %r6,%r7,6*8(SP)
larl %r7,.Lsigma larl %r7,sigma
lhi %r0,10 lhi %r0,10
lhi %r1,0 lhi %r1,0
...@@ -403,7 +404,7 @@ ENTRY(chacha20_vx_4x) ...@@ -403,7 +404,7 @@ ENTRY(chacha20_vx_4x)
lmg %r6,%r7,6*8(SP) lmg %r6,%r7,6*8(SP)
BR_EX %r14 BR_EX %r14
ENDPROC(chacha20_vx_4x) SYM_FUNC_END(chacha20_vx_4x)
#undef OUT #undef OUT
#undef INP #undef INP
...@@ -471,7 +472,7 @@ ENDPROC(chacha20_vx_4x) ...@@ -471,7 +472,7 @@ ENDPROC(chacha20_vx_4x)
#define T2 %v29 #define T2 %v29
#define T3 %v30 #define T3 %v30
ENTRY(chacha20_vx) SYM_FUNC_START(chacha20_vx)
clgfi LEN,256 clgfi LEN,256
jle chacha20_vx_4x jle chacha20_vx_4x
stmg %r6,%r7,6*8(SP) stmg %r6,%r7,6*8(SP)
...@@ -481,7 +482,7 @@ ENTRY(chacha20_vx) ...@@ -481,7 +482,7 @@ ENTRY(chacha20_vx)
la SP,0(%r1,SP) la SP,0(%r1,SP)
stg %r0,0(SP) # back-chain stg %r0,0(SP) # back-chain
larl %r7,.Lsigma larl %r7,sigma
lhi %r0,10 lhi %r0,10
VLM K1,K2,0,KEY,0 # load key VLM K1,K2,0,KEY,0 # load key
...@@ -902,6 +903,6 @@ ENTRY(chacha20_vx) ...@@ -902,6 +903,6 @@ ENTRY(chacha20_vx)
lmg %r6,%r7,FRAME+6*8(SP) lmg %r6,%r7,FRAME+6*8(SP)
la SP,FRAME(SP) la SP,FRAME(SP)
BR_EX %r14 BR_EX %r14
ENDPROC(chacha20_vx) SYM_FUNC_END(chacha20_vx)
.previous .previous
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment