patch-2.1.90 linux/include/asm-i386/pgtable.h
Next file: linux/include/asm-i386/processor.h
Previous file: linux/include/asm-i386/page.h
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Tue Mar 17 21:42:22 1998
- Orig file:
v2.1.89/linux/include/asm-i386/pgtable.h
- Orig date:
Tue Feb 17 13:12:48 1998
diff -u --recursive --new-file v2.1.89/linux/include/asm-i386/pgtable.h linux/include/asm-i386/pgtable.h
@@ -13,6 +13,7 @@
* the i386 page table tree.
*/
+#ifndef __ASSEMBLY__
/* Caches aren't brain-dead on the intel. */
#define flush_cache_all() do { } while (0)
#define flush_cache_mm(mm) do { } while (0)
@@ -155,6 +156,7 @@
}
#endif
#endif
+#endif /* !__ASSEMBLY__ */
/* Certain architectures need to do special things when pte's
@@ -181,6 +183,16 @@
#define PTRS_PER_PMD 1
#define PTRS_PER_PGD 1024
+/*
+ * pgd entries used up by user/kernel:
+ */
+
+#define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT)
+#define KERNEL_PGD_PTRS (PTRS_PER_PGD-USER_PGD_PTRS)
+#define __USER_PGD_PTRS ((__PAGE_OFFSET >> PGDIR_SHIFT) & 0x3ff)
+#define __KERNEL_PGD_PTRS (PTRS_PER_PGD-__USER_PGD_PTRS)
+
+#ifndef __ASSEMBLY__
/* Just any arbitrary offset to the start of the vmalloc VM area: the
* current 8MB value just means that there will be a 8MB "hole" after the
* physical memory until the kernel virtual memory starts. That means that
@@ -496,5 +508,7 @@
#define module_map vmalloc
#define module_unmap vfree
+
+#endif /* !__ASSEMBLY__ */
#endif /* _I386_PAGE_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov