Skip to contentSkip to conversation

x86/PAE linux: don't restrict upper half of page table entries to 3 bits

PATCH New Jan Beulich 1 participant 1 message Jan 5, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/PAE linux: don't restrict upper half of page table entries to 3 bits

.. when dumping the page table contents during an oops.

arch/i386/mm/fault-xen.c +2 -2
Index: head-2006-12-01/arch/i386/mm/fault-xen.c
===================================================================
@@ -225,7 +225,7 @@ static void dump_fault_path(unsigned lon
 	p += (address >> 30) * 2;
 	printk(KERN_ALERT "%08lx -> *pde = %08lx:%08lx\n", page, p[1], p[0]);
 	if (p[0] & 1) {
-		mfn  = (p[0] >> PAGE_SHIFT) | ((p[1] & 0x7) << 20); 
+		mfn  = (p[0] >> PAGE_SHIFT) | (p[1] << 20);
 		page = mfn_to_pfn(mfn) << PAGE_SHIFT; 
 		p  = (unsigned long *)__va(page);
 		address &= 0x3fffffff;
@@ -234,7 +234,7 @@ static void dump_fault_path(unsigned lon
 		       page, p[1], p[0]);
 #ifndef CONFIG_HIGHPTE
 		if (p[0] & 1) {
-			mfn  = (p[0] >> PAGE_SHIFT) | ((p[1] & 0x7) << 20); 
+			mfn  = (p[0] >> PAGE_SHIFT) | (p[1] << 20);
 			page = mfn_to_pfn(mfn) << PAGE_SHIFT; 
 			p  = (unsigned long *) __va(page);
 			address &= 0x001fffff;