patch-2.3.45 linux/include/asm-sh/pgtable.h
Next file: linux/include/asm-sparc64/floppy.h
Previous file: linux/include/asm-ppc/types.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sun Feb 13 10:31:07 2000
- Orig file:
v2.3.44/linux/include/asm-sh/pgtable.h
- Orig date:
Thu Feb 10 17:11:21 2000
diff -u --recursive --new-file v2.3.44/linux/include/asm-sh/pgtable.h linux/include/asm-sh/pgtable.h
@@ -250,10 +250,9 @@
((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
/* to find an entry in a page-table-directory. */
-#define __pgd_offset(address) \
- ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
-
-#define pgd_offset(mm, address) ((mm)->pgd+__pgd_offset(address))
+#define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
+#define __pgd_offset(address) pgd_index(address)
+#define pgd_offset(mm, address) ((mm)->pgd+pgd_index(address))
/* to find an entry in a kernel page-table-directory */
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)