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
-  Lines: 9
 -  Date:
Thu Feb 10 19:00:35 2000
 -  Orig file: 
v2.3.43/linux/include/asm-alpha/pgtable.h
 -  Orig date: 
Mon Dec 20 18:48:22 1999
 
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)