1 #ifndef __ASM_ALTERNATIVE_ASM_H
2 #define __ASM_ALTERNATIVE_ASM_H
6 .macro altinstruction_entry orig_offset alt_offset feature orig_len alt_len
14 .macro alternative_insn insn1 insn2 cap
16 662: .pushsection .altinstructions, "a"
17 altinstruction_entry 661b, 663f, \cap, 662b-661b, 664f-663f
19 .pushsection .altinstr_replacement, "ax"
22 .if ((664b-663b) != (662b-661b))
23 .error "Alternatives instruction length mismatch"
27 #endif /* __ASSEMBLY__ */
29 #endif /* __ASM_ALTERNATIVE_ASM_H */