/Ethereal-msm8939-beta9/arch/microblaze/include/asm/barrier.h

https://bitbucket.org/MilosStamenkovic95/etherealos · C Header · 27 lines · 14 code · 6 blank · 7 comment · 4 complexity · a8bdb552a061842db6a62aa15cf5e88f MD5 · raw file

  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_BARRIER_H
  9. #define _ASM_MICROBLAZE_BARRIER_H
  10. #define nop() asm volatile ("nop")
  11. #define smp_read_barrier_depends() do {} while (0)
  12. #define read_barrier_depends() do {} while (0)
  13. #define mb() barrier()
  14. #define rmb() mb()
  15. #define wmb() mb()
  16. #define set_mb(var, value) do { var = value; mb(); } while (0)
  17. #define set_wmb(var, value) do { var = value; wmb(); } while (0)
  18. #define smp_mb() mb()
  19. #define smp_rmb() rmb()
  20. #define smp_wmb() wmb()
  21. #endif /* _ASM_MICROBLAZE_BARRIER_H */