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

Next file: linux/include/asm-i386/bitops.h
Previous file: linux/include/asm-alpha/bitops.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.16/linux/include/asm-alpha/pgtable.h linux/include/asm-alpha/pgtable.h
@@ -347,6 +347,9 @@
 
 #define PAGE_DIR_OFFSET(tsk,address) pgd_offset((tsk),(address))
 
+/* 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