From: Paul M. <le...@us...> - 2006-08-19 18:31:50
|
Update of /cvsroot/linuxsh/linux/include/asm-sh/cpu-sh4 In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv13247/include/asm-sh/cpu-sh4 Modified Files: shmparam.h Log Message: Double up SHMLBA for SH-4A, and enforce it's usage for shmat(). Index: shmparam.h =================================================================== RCS file: /cvsroot/linuxsh/linux/include/asm-sh/cpu-sh4/shmparam.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- shmparam.h 4 May 2003 19:30:13 -0000 1.2 +++ shmparam.h 19 Aug 2006 18:31:45 -0000 1.3 @@ -2,6 +2,7 @@ * include/asm-sh/cpu-sh4/shmparam.h * * Copyright (C) 1999 Niibe Yutaka + * Copyright (C) 2006 Paul Mundt * * 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 archive @@ -13,7 +14,13 @@ /* * SH-4 has D-cache alias issue */ -#define SHMLBA (PAGE_SIZE*4) /* attach addr a multiple of this */ +#ifdef CONFIG_CPU_SH4A +#define SHMLBA (PAGE_SIZE*8) /* 32k dcache */ +#else +#define SHMLBA (PAGE_SIZE*4) /* 16k dcache */ +#endif + +#define __ARCH_FORCE_SHMLBA #endif /* __ASM_CPU_SH4_SHMPARAM_H */ |