2003-01-09 09:38:13

by Miles Bader

[permalink] [raw]
Subject: [PATCH] Define `read_barrier_depends' on v850

diff -ruN -X../cludes linux-2.5.55-moo.orig/include/asm-v850/system.h linux-2.5.55-moo/include/asm-v850/system.h
--- linux-2.5.55-moo.orig/include/asm-v850/system.h 2002-11-05 11:25:32.000000000 +0900
+++ linux-2.5.55-moo/include/asm-v850/system.h 2003-01-09 14:07:36.000000000 +0900
@@ -1,8 +1,8 @@
/*
* include/asm-v850/system.h -- Low-level interrupt/thread ops
*
- * Copyright (C) 2001,02 NEC Corporation
- * Copyright (C) 2001,02 Miles Bader <[email protected]>
+ * Copyright (C) 2001,02,03 NEC Corporation
+ * Copyright (C) 2001,02,03 Miles Bader <[email protected]>
*
* 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
@@ -67,6 +67,7 @@
#define mb() __asm__ __volatile__ ("" ::: "memory")
#define rmb() mb ()
#define wmb() mb ()
+#define read_barrier_depends() ((void)0)
#define set_rmb(var, value) do { xchg (&var, value); } while (0)
#define set_mb(var, value) set_rmb (var, value)
#define set_wmb(var, value) do { var = value; wmb (); } while (0)