alternative-asm.h 289 B

12345678910111213141516171819202122
  1. #ifdef __ASSEMBLY__
  2. #ifdef CONFIG_X86_32
  3. # define X86_ALIGN .long
  4. #else
  5. # define X86_ALIGN .quad
  6. #endif
  7. #ifdef CONFIG_SMP
  8. .macro LOCK_PREFIX
  9. 1: lock
  10. .section .smp_locks,"a"
  11. .align 4
  12. X86_ALIGN 1b
  13. .previous
  14. .endm
  15. #else
  16. .macro LOCK_PREFIX
  17. .endm
  18. #endif
  19. #endif /* __ASSEMBLY__ */