patch-2.2.14 linux/include/asm-sparc/shmparam.h
Next file: linux/include/asm-sparc64/asm_offsets.h
Previous file: linux/include/asm-sparc/ioctl.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Tue Jan 4 10:12:24 2000
- Orig file:
v2.2.13/linux/include/asm-sparc/shmparam.h
- Orig date:
Sun Oct 4 10:22:44 1998
diff -u --recursive --new-file v2.2.13/linux/include/asm-sparc/shmparam.h linux/include/asm-sparc/shmparam.h
@@ -1,4 +1,4 @@
-/* $Id: shmparam.h,v 1.4 1998/09/28 07:15:01 jj Exp $ */
+/* $Id: shmparam.h,v 1.4.2.1 1999/09/29 18:00:44 davem Exp $ */
#ifndef _ASMSPARC_SHMPARAM_H
#define _ASMSPARC_SHMPARAM_H
@@ -39,7 +39,12 @@
#define SHMMNI (1<<_SHM_ID_BITS) /* max num of segs system wide */
#define SHMALL /* max shm system wide (pages) */ \
(1<<(_SHM_IDX_BITS+_SHM_ID_BITS))
-#define SHMLBA PAGE_SIZE /* attach addr a multiple of this */
+
+extern int vac_cache_size;
+#define SHMLBA (vac_cache_size ? vac_cache_size : \
+ (sparc_cpu_model == sun4c ? (64 * 1024) : \
+ (sparc_cpu_model == sun4 ? (128 * 1024) : PAGE_SIZE)))
+
#define SHMSEG SHMMNI /* max shared segs per process */
#endif /* _ASMSPARC_SHMPARAM_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)