|
33 | 33 | .endif
|
34 | 34 | .endm
|
35 | 35 |
|
36 |
| -.macro __ALTERNATIVE_CFG old_c, new_c, vendor_id, errata_id, enable |
| 36 | +.macro ALTERNATIVE_CFG old_c, new_c, vendor_id, errata_id, enable |
37 | 37 | 886 :
|
38 | 38 | .option push
|
39 | 39 | .option norvc
|
|
45 | 45 | .endm
|
46 | 46 |
|
47 | 47 | #define _ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, CONFIG_k) \
|
48 |
| - __ALTERNATIVE_CFG old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k) |
| 48 | + ALTERNATIVE_CFG old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k) |
49 | 49 |
|
50 |
| -.macro __ALTERNATIVE_CFG_2 old_c, new_c_1, vendor_id_1, errata_id_1, enable_1, \ |
51 |
| - new_c_2, vendor_id_2, errata_id_2, enable_2 |
52 |
| - __ALTERNATIVE_CFG \old_c, \new_c_1, \vendor_id_1, \errata_id_1, \enable_1 |
| 50 | +.macro ALTERNATIVE_CFG_2 old_c, new_c_1, vendor_id_1, errata_id_1, enable_1, \ |
| 51 | + new_c_2, vendor_id_2, errata_id_2, enable_2 |
| 52 | + ALTERNATIVE_CFG \old_c, \new_c_1, \vendor_id_1, \errata_id_1, \enable_1 |
53 | 53 | ALT_NEW_CONTENT \vendor_id_2, \errata_id_2, \enable_2, \new_c_2
|
54 | 54 | .endm
|
55 | 55 |
|
56 | 56 | #define _ALTERNATIVE_CFG_2(old_c, new_c_1, vendor_id_1, errata_id_1, \
|
57 | 57 | CONFIG_k_1, \
|
58 | 58 | new_c_2, vendor_id_2, errata_id_2, \
|
59 | 59 | CONFIG_k_2) \
|
60 |
| - __ALTERNATIVE_CFG_2 old_c, new_c_1, vendor_id_1, errata_id_1, \ |
| 60 | + ALTERNATIVE_CFG_2 old_c, new_c_1, vendor_id_1, errata_id_1, \ |
61 | 61 | IS_ENABLED(CONFIG_k_1), \
|
62 |
| - new_c_2, vendor_id_2, errata_id_2, \ |
| 62 | + new_c_2, vendor_id_2, errata_id_2, \ |
63 | 63 | IS_ENABLED(CONFIG_k_2)
|
64 | 64 |
|
65 | 65 | #else /* !__ASSEMBLY__ */
|
|
126 | 126 | #else /* CONFIG_RISCV_ALTERNATIVE */
|
127 | 127 | #ifdef __ASSEMBLY__
|
128 | 128 |
|
129 |
| -.macro __ALTERNATIVE_CFG old_c |
| 129 | +.macro ALTERNATIVE_CFG old_c |
130 | 130 | \old_c
|
131 | 131 | .endm
|
132 | 132 |
|
133 | 133 | #define _ALTERNATIVE_CFG(old_c, ...) \
|
134 |
| - __ALTERNATIVE_CFG old_c |
| 134 | + ALTERNATIVE_CFG old_c |
135 | 135 |
|
136 | 136 | #define _ALTERNATIVE_CFG_2(old_c, ...) \
|
137 |
| - __ALTERNATIVE_CFG old_c |
| 137 | + ALTERNATIVE_CFG old_c |
138 | 138 |
|
139 | 139 | #else /* !__ASSEMBLY__ */
|
140 | 140 |
|
|
0 commit comments