patch-2.3.45 linux/include/asm-arm/pgtable.h

Next file: linux/include/asm-arm/proc-armo/semaphore.h
Previous file: linux/include/asm-arm/pci.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/include/asm-arm/pgtable.h linux/include/asm-arm/pgtable.h
@@ -122,9 +122,10 @@
 #define page_pte(page)		mk_pte(page, __pgprot(0))
 
 /* to find an entry in a page-table-directory */
-#define __pgd_offset(addr)	((addr) >> PGDIR_SHIFT)
+#define pgd_index(addr)		((addr) >> PGDIR_SHIFT)
+#define __pgd_offset(addr)	pgd_index(addr)
 
-#define pgd_offset(mm, addr)	((mm)->pgd+__pgd_offset(addr))
+#define pgd_offset(mm, addr)	((mm)->pgd+pgd_index(addr))
 
 /* to find an entry in a kernel page-table-directory */
 #define pgd_offset_k(addr)	pgd_offset(&init_mm, addr)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)