alternative-asm.h 500 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _ASM_X86_ALTERNATIVE_ASM_H
  2. #define _ASM_X86_ALTERNATIVE_ASM_H
  3. #ifdef __ASSEMBLY__
  4. #include <asm/asm.h>
  5. #ifdef CONFIG_SMP
  6. .macro LOCK_PREFIX
  7. 672: lock
  8. .pushsection .smp_locks,"a"
  9. .balign 4
  10. .long 672b - .
  11. .popsection
  12. .endm
  13. #else
  14. .macro LOCK_PREFIX
  15. .endm
  16. #endif
  17. .macro altinstruction_entry orig alt feature orig_len alt_len
  18. .long \orig - .
  19. .long \alt - .
  20. .word \feature
  21. .byte \orig_len
  22. .byte \alt_len
  23. .endm
  24. #endif /* __ASSEMBLY__ */
  25. #endif /* _ASM_X86_ALTERNATIVE_ASM_H */