alternative-asm.h 382 B

123456789101112131415161718192021222324252627
  1. #ifdef __ASSEMBLY__
  2. #include <asm/asm.h>
  3. #ifdef CONFIG_SMP
  4. .macro LOCK_PREFIX
  5. 672: lock
  6. .section .smp_locks,"a"
  7. .balign 4
  8. .long 672b - .
  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. .long \orig - .
  17. .long \alt - .
  18. .word \feature
  19. .byte \orig_len
  20. .byte \alt_len
  21. .endm
  22. #endif /* __ASSEMBLY__ */