Commit faf79934 authored by Vasily Gorbik's avatar Vasily Gorbik

s390/alternatives: avoid using jgnop mnemonic

jgnop mnemonic is only available since binutils 2.36,
kernel minimal required version is 2.23. Stick to brcl
to avoid build errors.
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Fixes: 4afeb670 ("s390/alternatives: use instructions instead of byte patterns")
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 7dcfe50f
......@@ -38,7 +38,7 @@
*/
.macro alt_pad_fill bytes
.rept ( \bytes ) / 6
jgnop .
brcl 0,0
.endr
.rept ( \bytes ) % 6 / 4
nop
......
......@@ -75,7 +75,7 @@ void apply_alternatives(struct alt_instr *start, struct alt_instr *end);
"\tnopr\n" \
".else\n" \
"\t.rept " oldinstr_pad_len(num) " / 6\n" \
"\t.jgnop .\n" \
"\t.brcl 0,0\n" \
"\t.endr\n" \
"\t.rept " oldinstr_pad_len(num) " %% 6 / 4\n" \
"\tnop\n" \
......
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