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

Next file: linux/include/asm-m68k/softirq.h
Previous file: linux/include/asm-m68k/macints.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/include/asm-m68k/pgtable.h linux/include/asm-m68k/pgtable.h
@@ -285,10 +285,12 @@
 
 #define PAGE_DIR_OFFSET(tsk,address) pgd_offset((tsk),(address))
 
+#define pgd_index(address)	((address) >> PGDIR_SHIFT)
+
 /* to find an entry in a page-table-directory */
 extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address)
 {
-	return mm->pgd + (address >> PGDIR_SHIFT);
+	return mm->pgd + pgd_index(address);
 }
 
 #define swapper_pg_dir kernel_pg_dir

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