Guan Xuetao | 8978bfd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Memory barrier implementations for PKUnity SoC and UniCore ISA |
| 3 | * |
| 4 | * Copyright (C) 2001-2012 GUAN Xue-tao |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | #ifndef __UNICORE_BARRIER_H__ |
| 11 | #define __UNICORE_BARRIER_H__ |
| 12 | |
| 13 | #define isb() __asm__ __volatile__ ("" : : : "memory") |
| 14 | #define dsb() __asm__ __volatile__ ("" : : : "memory") |
| 15 | #define dmb() __asm__ __volatile__ ("" : : : "memory") |
| 16 | |
Peter Zijlstra | 93ea02b | 2013-11-06 14:57:36 +0100 | [diff] [blame] | 17 | #include <asm-generic/barrier.h> |
Guan Xuetao | 8978bfd | 2012-03-28 18:30:03 +0100 | [diff] [blame] | 18 | |
| 19 | #endif /* __UNICORE_BARRIER_H__ */ |