patch-2.1.17 linux/include/asm-i386/pgtable.h
Next file: linux/include/asm-m68k/amigahw.h
Previous file: linux/include/asm-i386/bitops.h
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Sat Dec 21 19:03:09 1996
-  Orig file: 
v2.1.16/linux/include/asm-i386/pgtable.h
-  Orig date: 
Wed Dec 18 15:58:52 1996
diff -u --recursive --new-file v2.1.16/linux/include/asm-i386/pgtable.h linux/include/asm-i386/pgtable.h
@@ -351,6 +351,9 @@
 #define pgd_offset(mm, address) \
 ((mm)->pgd + ((address) >> PGDIR_SHIFT))
 
+/* to find an entry in a kernel page-table-directory */
+#define pgd_offset_k(address) pgd_offset(&init_mm, address)
+
 /* Find an entry in the second-level page table.. */
 extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address)
 {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov