|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] x86: Fix mfn_to_virt() to cast MFN to add
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1228304316 0
# Node ID 9a6153a89d6642555c9ed4dc386d243c3df23eab
# Parent 28d485613eb3666b7e060c10eee9777a93b9eded
x86: Fix mfn_to_virt() to cast MFN to address size.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
xen/include/asm-x86/page.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 28d485613eb3 -r 9a6153a89d66 xen/include/asm-x86/page.h
--- a/xen/include/asm-x86/page.h Wed Dec 03 11:21:34 2008 +0000
+++ b/xen/include/asm-x86/page.h Wed Dec 03 11:38:36 2008 +0000
@@ -228,7 +228,7 @@ void copy_page_sse2(void *, const void *
/* Convert between Xen-heap virtual addresses and machine frame numbers. */
#define virt_to_mfn(va) (virt_to_maddr(va) >> PAGE_SHIFT)
-#define mfn_to_virt(mfn) (maddr_to_virt(mfn << PAGE_SHIFT))
+#define mfn_to_virt(mfn) (maddr_to_virt((paddr_t)(mfn) << PAGE_SHIFT))
/* Convert between machine frame numbers and page-info structures. */
#define mfn_to_page(mfn) (frame_table + (mfn))
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] x86: Fix mfn_to_virt() to cast MFN to address size.,
Xen patchbot-unstable <=
|
|
|
|
|