David Howells | ae47394 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 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 | |
Peter Zijlstra | 93ea02b | 2013-11-06 14:57:36 +0100 | [diff] [blame] | 11 | /* |
| 12 | * Weirdest thing ever.. no full barrier, but it has a write barrier! |
| 13 | */ |
| 14 | #define wmb() asm volatile("sync 0" : : : "memory") |
David Howells | ae47394 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 15 | |
| 16 | #ifdef CONFIG_SMP |
| 17 | # error "The AVR32 port does not support SMP" |
David Howells | ae47394 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 18 | #endif |
| 19 | |
Peter Zijlstra | 93ea02b | 2013-11-06 14:57:36 +0100 | [diff] [blame] | 20 | #include <asm-generic/barrier.h> |
David Howells | ae47394 | 2012-03-28 18:30:01 +0100 | [diff] [blame] | 21 | |
| 22 | #endif /* __ASM_AVR32_BARRIER_H */ |