summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/xen/page.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/xen/page.h b/include/xen/page.h
index 12765b6..c5ed20b 100644
--- a/include/xen/page.h
+++ b/include/xen/page.h
@@ -3,6 +3,11 @@
#include <asm/xen/page.h>
+static inline unsigned long page_to_mfn(struct page *page)
+{
+ return pfn_to_mfn(page_to_pfn(page));
+}
+
struct xen_memory_region {
phys_addr_t start;
phys_addr_t size;
OpenPOWER on IntegriCloud