@@ -156,7 +156,7 @@ static __always_inline __pure bool _static_cpu_has(u16 bit)
156
156
".section .altinstructions,\"a\"\n"
157
157
" .long 1b - .\n" /* src offset */
158
158
" .long 4f - .\n" /* repl offset */
159
- " .word %P1 \n" /* always replace */
159
+ " .word %P[always] \n" /* always replace */
160
160
" .byte 3b - 1b\n" /* src len */
161
161
" .byte 5f - 4f\n" /* repl len */
162
162
" .byte 3b - 2b\n" /* pad len */
@@ -168,7 +168,7 @@ static __always_inline __pure bool _static_cpu_has(u16 bit)
168
168
".section .altinstructions,\"a\"\n"
169
169
" .long 1b - .\n" /* src offset */
170
170
" .long 0\n" /* no replacement */
171
- " .word %P0 \n" /* feature bit */
171
+ " .word %P[feature] \n" /* feature bit */
172
172
" .byte 3b - 1b\n" /* src len */
173
173
" .byte 0\n" /* repl len */
174
174
" .byte 0\n" /* pad len */
@@ -179,8 +179,9 @@ static __always_inline __pure bool _static_cpu_has(u16 bit)
179
179
" jnz %l[t_yes]\n"
180
180
" jmp %l[t_no]\n"
181
181
".previous\n"
182
- : : "i " (bit ), "i" (X86_FEATURE_ALWAYS ),
183
- [bitnum ] "i" (1 << (bit & 7 )),
182
+ : : [feature ] "i " (bit ),
183
+ [always ] "i " (X86_FEATURE_ALWAYS ),
184
+ [bitnum ] "i " (1 << (bit & 7 )),
184
185
[cap_byte ] "m " (((const char * )boot_cpu_data .x86_capability )[bit >> 3 ])
185
186
: : t_yes , t_no );
186
187
t_yes :
0 commit comments