aboutsummaryrefslogtreecommitdiffstats
path: root/tools/debugger
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-06-02 14:16:43 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-06-02 14:16:43 +0100
commit4f7f661224a7e496548c154c1cbe022be25561d9 (patch)
treefa31b523e6ebc0ca98008ced90442237e9aad85d /tools/debugger
parentdd9f789cb6ce7f512a06fb2ebd013a52ca6cbf9f (diff)
downloadxen-4f7f661224a7e496548c154c1cbe022be25561d9.tar.gz
xen-4f7f661224a7e496548c154c1cbe022be25561d9.tar.bz2
xen-4f7f661224a7e496548c154c1cbe022be25561d9.zip
[PAE] Fix tools to properly pack/unpack >4GB PAE CR3 values.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/debugger')
-rw-r--r--tools/debugger/libxendebug/xendebug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/debugger/libxendebug/xendebug.c b/tools/debugger/libxendebug/xendebug.c
index 8a4160637c..1a12848f5d 100644
--- a/tools/debugger/libxendebug/xendebug.c
+++ b/tools/debugger/libxendebug/xendebug.c
@@ -346,8 +346,9 @@ xendebug_memory_page (domain_context_p ctxt, int xc_handle, uint32_t vcpu,
ctxt->cr3_phys[vcpu] = vcpu_ctxt->ctrlreg[3];
if ( ctxt->cr3_virt[vcpu] )
munmap(ctxt->cr3_virt[vcpu], PAGE_SIZE);
- ctxt->cr3_virt[vcpu] = xc_map_foreign_range(xc_handle, ctxt->domid,
- PAGE_SIZE, PROT_READ, ctxt->cr3_phys[vcpu] >> PAGE_SHIFT);
+ ctxt->cr3_virt[vcpu] = xc_map_foreign_range(
+ xc_handle, ctxt->domid, PAGE_SIZE, PROT_READ,
+ xen_cr3_to_pfn(ctxt->cr3_phys[vcpu]));
if ( ctxt->cr3_virt[vcpu] == NULL )
return 0;
}