|
@@ -48,9 +48,6 @@ struct alt_instr {
|
|
u16 cpuid; /* cpuid bit set for replacement */
|
|
u16 cpuid; /* cpuid bit set for replacement */
|
|
u8 instrlen; /* length of original instruction */
|
|
u8 instrlen; /* length of original instruction */
|
|
u8 replacementlen; /* length of new instruction, <= instrlen */
|
|
u8 replacementlen; /* length of new instruction, <= instrlen */
|
|
-#ifdef CONFIG_X86_64
|
|
|
|
- u32 pad2;
|
|
|
|
-#endif
|
|
|
|
};
|
|
};
|
|
|
|
|
|
extern void alternative_instructions(void);
|
|
extern void alternative_instructions(void);
|
|
@@ -83,7 +80,6 @@ static inline int alternatives_text_reserved(void *start, void *end)
|
|
\
|
|
\
|
|
"661:\n\t" oldinstr "\n662:\n" \
|
|
"661:\n\t" oldinstr "\n662:\n" \
|
|
".section .altinstructions,\"a\"\n" \
|
|
".section .altinstructions,\"a\"\n" \
|
|
- _ASM_ALIGN "\n" \
|
|
|
|
" .long 661b - .\n" /* label */ \
|
|
" .long 661b - .\n" /* label */ \
|
|
" .long 663f - .\n" /* new instruction */ \
|
|
" .long 663f - .\n" /* new instruction */ \
|
|
" .word " __stringify(feature) "\n" /* feature bit */ \
|
|
" .word " __stringify(feature) "\n" /* feature bit */ \
|