diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2022-03-14 00:04:10 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2022-03-27 23:18:38 +0300 |
commit | 4afeb670710efa5cd5ed8b1d9f2d22d6ce332bcc (patch) | |
tree | e970219ad9e0ed8b83d6f0ed9d0d50faafa31bdb /arch/s390/include/asm/alternative-asm.h | |
parent | f09354ffd84eef3c88efa8ba6df05efe50cfd16a (diff) | |
download | linux-4afeb670710efa5cd5ed8b1d9f2d22d6ce332bcc.tar.xz |
s390/alternatives: use instructions instead of byte patterns
Use readable nop instructions within the code which generates
the padding areas, instead of unreadable byte patterns.
The generated code is identical.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/alternative-asm.h')
-rw-r--r-- | arch/s390/include/asm/alternative-asm.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/s390/include/asm/alternative-asm.h b/arch/s390/include/asm/alternative-asm.h index 955d620db23e..221d790361b9 100644 --- a/arch/s390/include/asm/alternative-asm.h +++ b/arch/s390/include/asm/alternative-asm.h @@ -37,9 +37,15 @@ * a 2-byte nop if the size of the area is not divisible by 6. */ .macro alt_pad_fill bytes - .fill ( \bytes ) / 6, 6, 0xc0040000 - .fill ( \bytes ) % 6 / 4, 4, 0x47000000 - .fill ( \bytes ) % 6 % 4 / 2, 2, 0x0700 + .rept ( \bytes ) / 6 + jgnop . + .endr + .rept ( \bytes ) % 6 / 4 + nop + .endr + .rept ( \bytes ) % 6 % 4 / 2 + nopr + .endr .endm /* |