|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix page_to_phys() macro as suggested by Gerd.
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 08bc755fe7961c4d7b2d9ee29b4909eab3868aa1
# Parent dcb2b7a1c621ac707c493cb8375e8261123ce7d4
Fix page_to_phys() macro as suggested by Gerd.
diff -r dcb2b7a1c621 -r 08bc755fe796 xen/include/asm-x86/io.h
--- a/xen/include/asm-x86/io.h Mon Aug 8 16:51:02 2005
+++ b/xen/include/asm-x86/io.h Mon Aug 8 17:00:21 2005
@@ -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 @@
/*
* 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))
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix page_to_phys() macro as suggested by Gerd.,
Xen patchbot -unstable <=
|
|
|
|
|