/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | alternative.h | 38 #define __OLDINSTR(oldinstr, num) \ 39 "661:\n\t" oldinstr "\n662:\n" \ 43 #define OLDINSTR(oldinstr, num) \ 44 __OLDINSTR(oldinstr, num) \ 53 #define OLDINSTR_2(oldinstr, num1, num2) \ 54 "661:\n\t" oldinstr "\n662:\n" \ 71 #define ALTERNATIVE(oldinstr, newinstr, feature) \ 72 OLDINSTR(oldinstr, 1) \ 80 #define ALTERNATIVE_2(oldinstr, newinstr1, feature1, newinstr2, feature2)\ 81 OLDINSTR_2(oldinstr, [all...] |
H A D | alternative-asm.h | 25 * present, early code in apply_alternatives() replaces @oldinstr with 27 * in case @newinstr is longer than @oldinstr. 29 .macro ALTERNATIVE oldinstr, newinstr, feature 31 \oldinstr 55 * has @feature1, it replaces @oldinstr with @newinstr1. If CPU has 56 * @feature2, it replaces @oldinstr with @feature2. 58 .macro ALTERNATIVE_2 oldinstr, newinstr1, feature1, newinstr2, feature2 60 \oldinstr
|
/kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
H A D | alternative.h | 38 #define __OLDINSTR(oldinstr, num) \ 39 "661:\n\t" oldinstr "\n662:\n" \ 43 #define OLDINSTR(oldinstr, num) \ 44 __OLDINSTR(oldinstr, num) \ 53 #define OLDINSTR_2(oldinstr, num1, num2) \ 54 "661:\n\t" oldinstr "\n662:\n" \ 71 #define ALTERNATIVE(oldinstr, newinstr, feature) \ 72 OLDINSTR(oldinstr, 1) \ 80 #define ALTERNATIVE_2(oldinstr, newinstr1, feature1, newinstr2, feature2)\ 81 OLDINSTR_2(oldinstr, [all...] |
H A D | alternative-asm.h | 25 * present, early code in apply_alternatives() replaces @oldinstr with 27 * in case @newinstr is longer than @oldinstr. 29 .macro ALTERNATIVE oldinstr, newinstr, feature 31 \oldinstr 55 * has @feature1, it replaces @oldinstr with @newinstr1. If CPU has 56 * @feature2, it replaces @oldinstr with @feature2. 58 .macro ALTERNATIVE_2 oldinstr, newinstr1, feature1, newinstr2, feature2 60 \oldinstr
|
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | alternative.h | 24 * | oldinstr | 48 #define OLDINSTR(oldinstr) \ 49 "661:\n\t" oldinstr "\n662:\n" 63 #define ALTERNATIVE(oldinstr, altinstr, facility) \ 67 OLDINSTR(oldinstr) \ 72 #define ALTERNATIVE_2(oldinstr, altinstr1, facility1, altinstr2, facility2)\ 77 OLDINSTR(oldinstr) \ 89 * oldinstr is padded with jump and nops at compile time if altinstr is 95 #define alternative(oldinstr, altinstr, facility) \ 96 asm_inline volatile(ALTERNATIVE(oldinstr, altinst [all...] |
H A D | alternative-asm.h | 24 * present, early code in apply_alternatives() replaces @oldinstr with 27 .macro ALTERNATIVE oldinstr, newinstr, feature 31 772: \oldinstr 39 * present, early code in apply_alternatives() replaces @oldinstr with 42 .macro ALTERNATIVE_2 oldinstr, newinstr1, feature1, newinstr2, feature2 47 773: \oldinstr
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | alternative.h | 161 #define OLDINSTR(oldinstr, num) \ 163 "661:\n\t" oldinstr "\n662:\n" \ 181 #define OLDINSTR_2(oldinstr, num1, num2) \ 183 "661:\n\t" oldinstr "\n662:\n" \ 211 #define ALTERNATIVE(oldinstr, newinstr, ft_flags) \ 212 OLDINSTR(oldinstr, 1) \ 220 #define ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2) \ 221 OLDINSTR_2(oldinstr, 1, 2) \ 232 #define ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) \ 233 ALTERNATIVE_2(oldinstr, newinstr_n [all...] |
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | alternative.h | 25 * | oldinstr | oldinstr_padding | 70 #define OLDINSTR_PADDING(oldinstr, num) \ 81 #define OLDINSTR(oldinstr, num) \ 82 "661:\n\t" oldinstr "\n662:\n" \ 83 OLDINSTR_PADDING(oldinstr, num) \ 87 #define OLDINSTR_2(oldinstr, num1, num2) \ 88 "661:\n\t" oldinstr "\n662:\n" \ 90 OLDINSTR_PADDING(oldinstr, num2) \ 92 OLDINSTR_PADDING(oldinstr, num1) \ 109 #define ALTERNATIVE(oldinstr, altinst [all...] |
H A D | alternative-asm.h | 63 * present, early code in apply_alternatives() replaces @oldinstr with 65 * in case @newinstr is longer than @oldinstr. 67 .macro ALTERNATIVE oldinstr, newinstr, feature 71 772: \oldinstr 82 * present, early code in apply_alternatives() replaces @oldinstr with 84 * in case @newinstr is longer than @oldinstr. 86 .macro ALTERNATIVE_2 oldinstr, newinstr1, feature1, newinstr2, feature2 91 773: \oldinstr
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | alternative.h | 111 #define OLDINSTR(oldinstr, num) \ 113 "661:\n\t" oldinstr "\n662:\n" \ 131 #define OLDINSTR_2(oldinstr, num1, num2) \ 133 "661:\n\t" oldinstr "\n662:\n" \ 161 #define ALTERNATIVE(oldinstr, newinstr, feature) \ 162 OLDINSTR(oldinstr, 1) \ 170 #define ALTERNATIVE_2(oldinstr, newinstr1, feature1, newinstr2, feature2)\ 171 OLDINSTR_2(oldinstr, 1, 2) \ 182 #define ALTERNATIVE_TERNARY(oldinstr, feature, newinstr_yes, newinstr_no) \ 183 ALTERNATIVE_2(oldinstr, newinstr_n [all...] |
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | alternative-macros.h | 56 #define __ALTERNATIVE_CFG(oldinstr, newinstr, cpucap, cfg_enabled) \ 59 oldinstr "\n" \ 73 #define __ALTERNATIVE_CFG_CB(oldinstr, cpucap, cfg_enabled, cb) \ 76 oldinstr "\n" \ 85 #define _ALTERNATIVE_CFG(oldinstr, newinstr, cpucap, cfg, ...) \ 86 __ALTERNATIVE_CFG(oldinstr, newinstr, cpucap, IS_ENABLED(cfg)) 88 #define ALTERNATIVE_CB(oldinstr, cpucap, cb) \ 89 __ALTERNATIVE_CFG_CB(oldinstr, (1 << ARM64_CB_SHIFT) | (cpucap), 1, cb) 213 * Usage: asm(ALTERNATIVE(oldinstr, newinstr, cpucap)); 215 * Usage: asm(ALTERNATIVE(oldinstr, newinst [all...] |
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | alternative-macros.h | 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 variable 201 9999: alternative_insn "\oldinstr", "\newinst [all...] |