Subversion Repositories HelenOS-historic

Rev

Rev 1398 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1398 Rev 1702
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
 /** @addtogroup ppc64 
-
 
30
 * @{
-
 
31
 */
-
 
32
/** @file
-
 
33
 */
-
 
34
 
29
#ifndef __ppc64_BARRIER_H__
35
#ifndef __ppc64_BARRIER_H__
30
#define __ppc64_BARRIER_H__
36
#define __ppc64_BARRIER_H__
31
 
37
 
32
#define CS_ENTER_BARRIER()  asm volatile ("" ::: "memory")
38
#define CS_ENTER_BARRIER()  asm volatile ("" ::: "memory")
33
#define CS_LEAVE_BARRIER()  asm volatile ("" ::: "memory")
39
#define CS_LEAVE_BARRIER()  asm volatile ("" ::: "memory")
Line 35... Line 41...
35
#define memory_barrier() asm volatile ("sync" ::: "memory")
41
#define memory_barrier() asm volatile ("sync" ::: "memory")
36
#define read_barrier() asm volatile ("sync" ::: "memory")
42
#define read_barrier() asm volatile ("sync" ::: "memory")
37
#define write_barrier() asm volatile ("eieio" ::: "memory")
43
#define write_barrier() asm volatile ("eieio" ::: "memory")
38
 
44
 
39
#endif
45
#endif
-
 
46
 
-
 
47
 /** @}
-
 
48
 */
-
 
49