patch-2.1.17 linux/include/asm-ppc/pgtable.h

Next file: linux/include/asm-sparc/byteorder.h
Previous file: linux/include/asm-ppc/floppy.h.old
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.16/linux/include/asm-ppc/pgtable.h linux/include/asm-ppc/pgtable.h
@@ -226,6 +226,9 @@
 { return pmd_val(pmd) & PAGE_MASK; }
 
 
+/* to find an entry in a kernel page-table-directory */
+#define pgd_offset_k(address) pgd_offset(&init_mm, address)
+
 /* to find an entry in a page-table-directory */
 extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov