From f20726c6656eb8412fafe93d7e42bef64819bb99 Mon Sep 17 00:00:00 2001 From: Harald Koerfgen Date: Tue, 12 Oct 1999 17:33:49 +0000 Subject: o R3000 fixes o moved to original 2.3.19 NCR53C9x driver o CONFIG_ULTRIX_PARTION is working again and now big endian proof --- include/asm-mips/system.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/asm-mips/system.h') diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 80cbd08fc..50c7b0d36 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h @@ -1,4 +1,4 @@ -/* $Id: system.h,v 1.15 1999/08/13 17:07:28 harald Exp $ +/* $Id: system.h,v 1.16 1999/10/09 00:01:43 ralf Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive @@ -127,6 +127,12 @@ __restore_flags(int flags) /* * These are probably defined overly paranoid ... */ +#ifdef CONFIG_CPU_HAS_WB +#include +#define rmb() +#define wmb() wbflush() +#define mb() wbflush() +#else #define mb() \ __asm__ __volatile__( \ "# prevent instructions being moved around\n\t" \ @@ -139,6 +145,7 @@ __asm__ __volatile__( \ : "memory") #define rmb() mb() #define wmb() mb() +#endif #define set_mb(var, value) \ do { var = value; mb(); } while (0) -- cgit v1.2.3