From: "Jan Beulich" Subject: [PATCH] x86/PAE linux: don't restrict upper half of page table entries to 3 bits Date: Fri, 05 Jan 2007 16:56:34 +0000 Message-ID: <459E9152.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org .. when dumping the page table contents during an oops. Signed-off-by: Jan Beulich Index: head-2006-12-01/arch/i386/mm/fault-xen.c =================================================================== --- head-2006-12-01.orig/arch/i386/mm/fault-xen.c 2007-01-05 17:14:18.000000000 +0100 +++ head-2006-12-01/arch/i386/mm/fault-xen.c 2007-01-05 17:17:54.000000000 +0100 @@ -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;