llsc.h 623 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Macros for 32/64-bit neutral inline assembler
  7. */
  8. #ifndef __ASM_LLSC_H
  9. #define __ASM_LLSC_H
  10. #if _MIPS_SZLONG == 32
  11. #define SZLONG_LOG 5
  12. #define SZLONG_MASK 31UL
  13. #define __LL "ll "
  14. #define __SC "sc "
  15. #define __INS "ins "
  16. #define __EXT "ext "
  17. #elif _MIPS_SZLONG == 64
  18. #define SZLONG_LOG 6
  19. #define SZLONG_MASK 63UL
  20. #define __LL "lld "
  21. #define __SC "scd "
  22. #define __INS "dins "
  23. #define __EXT "dext "
  24. #endif
  25. #endif /* __ASM_LLSC_H */