Skip to content

Commit a88c26b

Browse files
svens-s390Alexander Gordeev
authored andcommitted
s390/stackleak: Use exrl instead of ex in __stackleak_poison()
exrl is present in all machines currently supported, therefore prefer it over ex. This saves one instruction and doesn't need an additional register to hold the address of the target instruction. Signed-off-by: Sven Schnelle <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
1 parent 745600e commit a88c26b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/s390/include/asm/processor.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ static __always_inline void __stackleak_poison(unsigned long erase_low,
163163
" la %[addr],256(%[addr])\n"
164164
" brctg %[tmp],0b\n"
165165
"1: stg %[poison],0(%[addr])\n"
166-
" larl %[tmp],3f\n"
167-
" ex %[count],0(%[tmp])\n"
166+
" exrl %[count],3f\n"
168167
" j 4f\n"
169168
"2: stg %[poison],0(%[addr])\n"
170169
" j 4f\n"

0 commit comments

Comments
 (0)