Lines Matching +full:alternative +full:- +full:a
1 // SPDX-License-Identifier: GPL-2.0
4 #include <asm/nospec-branch.h>
6 #include <asm/alternative.h>
12 struct alt_instr *a; in __apply_alternatives() local
16 * The scan order should be from start to end. A later scanned in __apply_alternatives()
17 * alternative code can overwrite previously scanned alternative code. in __apply_alternatives()
19 for (a = start; a < end; a++) { in __apply_alternatives()
20 if (!(a->ctx & ctx)) in __apply_alternatives()
22 switch (a->type) { in __apply_alternatives()
24 replace = test_facility(a->data); in __apply_alternatives()
37 instr = (u8 *)&a->instr_offset + a->instr_offset; in __apply_alternatives()
38 replacement = (u8 *)&a->repl_offset + a->repl_offset; in __apply_alternatives()
39 s390_kernel_write(instr, replacement, a->instrlen); in __apply_alternatives()