patch-2.4.10 linux/include/asm-sh/shmparam.h
Next file: linux/include/asm-sh/smplock.h
Previous file: linux/include/asm-sh/semaphore.h
Back to the patch index
Back to the overall index
-  Lines: 14
-  Date:
Sat Sep  8 12:29:09 2001
-  Orig file: 
v2.4.9/linux/include/asm-sh/shmparam.h
-  Orig date: 
Wed Nov  3 11:31:09 1999
diff -u --recursive --new-file v2.4.9/linux/include/asm-sh/shmparam.h linux/include/asm-sh/shmparam.h
@@ -1,6 +1,13 @@
 #ifndef __ASM_SH_SHMPARAM_H
 #define __ASM_SH_SHMPARAM_H
 
+#if defined(__SH4__)
+/*
+ * SH-4 has D-cache alias issue
+ */
+#define	SHMLBA (PAGE_SIZE*4)		 /* attach addr a multiple of this */
+#else
 #define	SHMLBA PAGE_SIZE		 /* attach addr a multiple of this */
+#endif
 
 #endif /* __ASM_SH_SHMPARAM_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)