X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-mips%2Fwar.h;h=c4a70412134327a586b46acc7f00b385b14d8f0f;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=a6f5c06c70e32df7f34b946695cda65066d07487;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-mips/war.h b/include/asm-mips/war.h index a6f5c06c7..c4a704121 100644 --- a/include/asm-mips/war.h +++ b/include/asm-mips/war.h @@ -176,6 +176,14 @@ #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 */ @@ -209,5 +217,8 @@ #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 */