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

Next file: linux/include/asm-sparc/pgtsrmmu.h
Previous file: linux/include/asm-sparc/page.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.16/linux/include/asm-sparc/pgtable.h linux/include/asm-sparc/pgtable.h
@@ -213,6 +213,9 @@
 
 extern pte_t (*pte_modify)(pte_t, pgprot_t);
 
+/* 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 pgd_t * (*pgd_offset)(struct mm_struct *, unsigned long);
 

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