Lines Matching refs:oldinstr
46 #define __ALTERNATIVE_CFG(oldinstr, newinstr, feature, cfg_enabled) \
49 oldinstr "\n" \
63 #define __ALTERNATIVE_CFG_CB(oldinstr, feature, cfg_enabled, cb) \
66 oldinstr "\n" \
75 #define _ALTERNATIVE_CFG(oldinstr, newinstr, feature, cfg, ...) \
76 __ALTERNATIVE_CFG(oldinstr, newinstr, feature, IS_ENABLED(cfg))
78 #define ALTERNATIVE_CB(oldinstr, cb) \
79 __ALTERNATIVE_CFG_CB(oldinstr, ARM64_CB_PATCH, 1, cb)
200 .macro user_alt, label, oldinstr, newinstr, cond
201 9999: alternative_insn "\oldinstr", "\newinstr", \cond
267 * Usage: asm(ALTERNATIVE(oldinstr, newinstr, feature));
269 * Usage: asm(ALTERNATIVE(oldinstr, newinstr, feature, CONFIG_FOO));
271 * will be omitted, including oldinstr.
273 #define ALTERNATIVE(oldinstr, newinstr, ...) \
274 _ALTERNATIVE_CFG(oldinstr, newinstr, __VA_ARGS__, 1)