WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] linux/i386: Use symbolic constants in

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/i386: Use symbolic constants in dump_fault_path()
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Dec 2007 08:20:23 -0800
Delivery-date: Fri, 07 Dec 2007 08:21:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196955961 0
# Node ID 53d5db770cd302c31f24a343530311278c7412ea
# Parent  21a40e77044b20f37059b249e1755cb8c8e8ff60
linux/i386: Use symbolic constants in dump_fault_path()
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 arch/i386/mm/fault-xen.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 21a40e77044b -r 53d5db770cd3 arch/i386/mm/fault-xen.c
--- a/arch/i386/mm/fault-xen.c  Thu Dec 06 15:45:34 2007 +0000
+++ b/arch/i386/mm/fault-xen.c  Thu Dec 06 15:46:01 2007 +0000
@@ -261,7 +261,7 @@ static void dump_fault_path(unsigned lon
        p  = (unsigned long *)__va(page);
        p += (address >> 30) * 2;
        printk(KERN_ALERT "%08lx -> *pde = %08lx:%08lx\n", page, p[1], p[0]);
-       if (p[0] & 1) {
+       if (p[0] & _PAGE_PRESENT) {
                mfn  = (p[0] >> PAGE_SHIFT) | (p[1] << 20);
                page = mfn_to_pfn(mfn) << PAGE_SHIFT; 
                p  = (unsigned long *)__va(page);
@@ -274,7 +274,7 @@ static void dump_fault_path(unsigned lon
                if (mfn_to_pfn(mfn) >= highstart_pfn)
                        return;
 #endif
-               if (p[0] & 1) {
+               if (p[0] & _PAGE_PRESENT) {
                        page = mfn_to_pfn(mfn) << PAGE_SHIFT; 
                        p  = (unsigned long *) __va(page);
                        address &= 0x001fffff;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] linux/i386: Use symbolic constants in dump_fault_path(), Xen patchbot-linux-2.6.18-xen <=