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

Next file: linux/include/asm-i386/io.h
Previous file: linux/fs/read_write.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.43/linux/include/asm-alpha/pgtable.h linux/include/asm-alpha/pgtable.h
@@ -249,7 +249,7 @@
 #define pgd_offset_k(address) pgd_offset(&init_mm, address)
 
 /* to find an entry in a page-table-directory. */
-#define __pgd_offset(address)	((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
+#define __pgd_offset(address)	((address >> PGDIR_SHIFT) & PTRS_PER_PGD)
 #define pgd_offset(mm, address)	((mm)->pgd+__pgd_offset(address))
 
 /* Find an entry in the second-level page table.. */

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