alternative-asm.h 380 B

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