2019-06-04 08:11:33 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-03-28 17:30:03 +00:00
|
|
|
/*
|
|
|
|
* Memory barrier implementations for PKUnity SoC and UniCore ISA
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001-2012 GUAN Xue-tao
|
|
|
|
*/
|
|
|
|
#ifndef __UNICORE_BARRIER_H__
|
|
|
|
#define __UNICORE_BARRIER_H__
|
|
|
|
|
|
|
|
#define isb() __asm__ __volatile__ ("" : : : "memory")
|
|
|
|
#define dsb() __asm__ __volatile__ ("" : : : "memory")
|
|
|
|
#define dmb() __asm__ __volatile__ ("" : : : "memory")
|
|
|
|
|
2013-11-06 13:57:36 +00:00
|
|
|
#include <asm-generic/barrier.h>
|
2012-03-28 17:30:03 +00:00
|
|
|
|
|
|
|
#endif /* __UNICORE_BARRIER_H__ */
|