barrier.h 574 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_AVR32_BARRIER_H
  9. #define __ASM_AVR32_BARRIER_H
  10. /*
  11. * Weirdest thing ever.. no full barrier, but it has a write barrier!
  12. */
  13. #define wmb() asm volatile("sync 0" : : : "memory")
  14. #ifdef CONFIG_SMP
  15. # error "The AVR32 port does not support SMP"
  16. #endif
  17. #include <asm-generic/barrier.h>
  18. #endif /* __ASM_AVR32_BARRIER_H */