]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
linux/i386: Use symbolic constants in dump_fault_path()
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 15:46:01 +0000 (15:46 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 15:46:01 +0000 (15:46 +0000)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
arch/i386/mm/fault-xen.c

index bd052c914e783cd5f34320d17ef90649f9fac1ca..6c036c7c63ccbd78caf7019ae11a878efda56465 100644 (file)
@@ -261,7 +261,7 @@ static void dump_fault_path(unsigned long address)
        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 long address)
                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;