|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] linux/i386: Use symbolic constants in
# 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 <=
|
|
|
|
|