linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / asm-h8300 / system.h
index 5084a9d..dfe96c7 100644 (file)
@@ -1,8 +1,11 @@
 #ifndef _H8300_SYSTEM_H
 #define _H8300_SYSTEM_H
 
+#include <linux/config.h> /* get configuration macros */
 #include <linux/linkage.h>
 
+#define prepare_to_switch()    do { } while(0)
+
 /*
  * switch_to(n) should switch tasks to task ptr, first checking that
  * ptr isn't the current task, in which case it does nothing.  This
@@ -84,6 +87,7 @@ asmlinkage void resume(void);
 #define wmb()  asm volatile (""   : : :"memory")
 #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)
 
 #ifdef CONFIG_SMP
 #define smp_mb()       mb()