Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>

authored by

Sven Schnelle and committed by
Alexander Gordeev
a88c26bb 745600ed

+1 -2
+1 -2
arch/s390/include/asm/processor.h
··· 163 163 " la %[addr],256(%[addr])\n" 164 164 " brctg %[tmp],0b\n" 165 165 "1: stg %[poison],0(%[addr])\n" 166 - " larl %[tmp],3f\n" 167 - " ex %[count],0(%[tmp])\n" 166 + " exrl %[count],3f\n" 168 167 " j 4f\n" 169 168 "2: stg %[poison],0(%[addr])\n" 170 169 " j 4f\n"