vserver 1.9.5.x5
[linux-2.6.git] / include / asm-mips / war.h
index a6f5c06..c4a7041 100644 (file)
 #define  RM9000_CDEX_SMP_WAR           1
 #endif
 
+/*
+ * ON the R10000 upto version 2.6 (not sure about 2.7) there is a bug that
+ * may cause ll / sc and lld / scd sequences to execute non-atomically.
+ */
+#ifdef CONFIG_SGI_IP27
+#define R10000_LLSC_WAR 1
+#endif
+
 /*
  * Workarounds default to off
  */
 #ifndef RM9000_CDEX_SMP_WAR
 #define RM9000_CDEX_SMP_WAR            0
 #endif
+#ifndef R10000_LLSC_WAR
+#define R10000_LLSC_WAR                        0
+#endif
 
 #endif /* _ASM_WAR_H */