Messages in this thread Patch in this message | | | Date | Thu, 10 Feb 2000 21:00:27 +0300 | From | Ivan Kokshaysky <> | Subject | 2.3.4x asm-alpha/pgtable.h fix |
| |
Latest kernels hang trying to map virtual addresses with bit 33 set. In particular, this affects the DU binaries. The fix is obvious, considering that PTRS_PER_PGD defined as ((1UL << (PAGE_SHIFT-3))-1).
Ivan.
--- linux-2.3.42/include/asm-alpha/pgtable.h Wed Dec 15 21:32:47 1999 +++ linux/include/asm-alpha/pgtable.h Thu Feb 10 19:31:03 2000 @@ -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.. */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |