aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-08 17:00:21 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-08 17:00:21 +0000
commit52318a414cdf31ce6c12907bfbd6d76364af8a44 (patch)
tree52dc6884a3ee2fb2e1fb6e675e98b45936c88be1
parentbc7615a229fe8a2e7a1889b0468e68c3203cf3d1 (diff)
downloadxen-52318a414cdf31ce6c12907bfbd6d76364af8a44.tar.gz
xen-52318a414cdf31ce6c12907bfbd6d76364af8a44.tar.bz2
xen-52318a414cdf31ce6c12907bfbd6d76364af8a44.zip
Fix page_to_phys() macro as suggested by Gerd.
-rw-r--r--xen/include/asm-x86/io.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/xen/include/asm-x86/io.h b/xen/include/asm-x86/io.h
index 2b733e4e86..8f8abf65c5 100644
--- a/xen/include/asm-x86/io.h
+++ b/xen/include/asm-x86/io.h
@@ -2,6 +2,7 @@
#define _ASM_IO_H
#include <xen/config.h>
+#include <xen/types.h>
#include <asm/page.h>
#define IO_SPACE_LIMIT 0xffff
@@ -45,11 +46,7 @@ static inline void * phys_to_virt(unsigned long address)
/*
* Change "struct pfn_info" to physical address.
*/
-#ifdef CONFIG_HIGHMEM64G
-#define page_to_phys(page) ((u64)(page - frame_table) << PAGE_SHIFT)
-#else
-#define page_to_phys(page) ((page - frame_table) << PAGE_SHIFT)
-#endif
+#define page_to_phys(page) ((physaddr_t)(page - frame_table) << PAGE_SHIFT)
#define page_to_pfn(_page) ((unsigned long)((_page) - frame_table))
#define page_to_virt(_page) phys_to_virt(page_to_phys(_page))