projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c18553
)
x86: Fix mfn_to_virt() to cast MFN to address size.
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 3 Dec 2008 11:38:36 +0000
(11:38 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 3 Dec 2008 11:38:36 +0000
(11:38 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/include/asm-x86/page.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-x86/page.h
b/xen/include/asm-x86/page.h
index 9ccfdb8502b81fd2465164ecbf042ac105d05d3c..a58a750d07c289a4a51de4a78e1fb8c2ce97cb99 100644
(file)
--- a/
xen/include/asm-x86/page.h
+++ b/
xen/include/asm-x86/page.h
@@
-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))