lkml.org 
[lkml]   [2000]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.027 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site