Lines Matching refs:a
151 const struct alt_instr *a; in apply_alternatives() local
166 for ( a = start; a < end; a++ ) in apply_alternatives()
168 instr = (u8 *)&a->instr_offset + a->instr_offset; in apply_alternatives()
169 replacement = (u8 *)&a->repl_offset + a->repl_offset; in apply_alternatives()
170 BUG_ON(a->replacementlen > a->instrlen); in apply_alternatives()
171 BUG_ON(a->instrlen > sizeof(insnbuf)); in apply_alternatives()
172 BUG_ON(a->cpuid >= NCAPINTS * 32); in apply_alternatives()
173 if ( !boot_cpu_has(a->cpuid) ) in apply_alternatives()
176 memcpy(insnbuf, replacement, a->replacementlen); in apply_alternatives()
179 if ( a->replacementlen >= 5 && (*insnbuf & 0xfe) == 0xe8 ) in apply_alternatives()
182 add_nops(insnbuf + a->replacementlen, in apply_alternatives()
183 a->instrlen - a->replacementlen); in apply_alternatives()
184 text_poke(instr, insnbuf, a->instrlen); in apply_alternatives()