patch-2.1.101 linux/include/asm-arm/proc-armo/page.h
Next file: linux/include/asm-arm/proc-armo/pgtable.h
Previous file: linux/include/asm-arm/proc-armo/mm-init.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Fri May 8 00:42:40 1998
- Orig file:
v2.1.100/linux/include/asm-arm/proc-armo/page.h
- Orig date:
Tue Jan 20 16:39:42 1998
diff -u --recursive --new-file v2.1.100/linux/include/asm-arm/proc-armo/page.h linux/include/asm-arm/proc-armo/page.h
@@ -7,8 +7,16 @@
#ifndef __ASM_PROC_PAGE_H
#define __ASM_PROC_PAGE_H
-/* PAGE_SHIFT determines the page size */
-#define PAGE_SHIFT 15
+#include <linux/config.h>
+
+/* PAGE_SHIFT determines the page size. This is configurable. */
+#if defined(CONFIG_PAGESIZE_8)
+#define PAGE_SHIFT 13 /* 8K */
+#elif defined(CONFIG_PAGESIZE_16)
+#define PAGE_SHIFT 14 /* 16K */
+#else /* default */
+#define PAGE_SHIFT 15 /* 32K */
+#endif
#define PAGE_SIZE (1UL << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov