aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/tmem_xen.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-02-09 11:33:29 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-02-09 11:33:29 +0000
commit208661fff27289b35496d1a62665c3aa62234903 (patch)
tree7ad763a230778927599f00db185803b16e4077b7 /xen/common/tmem_xen.c
parent4e60158364638028e95855b5fdfd8e68cd70b225 (diff)
downloadxen-208661fff27289b35496d1a62665c3aa62234903.tar.gz
xen-208661fff27289b35496d1a62665c3aa62234903.tar.bz2
xen-208661fff27289b35496d1a62665c3aa62234903.zip
arm: compile tmem
Include few missing header files; introduce defined(CONFIG_ARM) where required. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/common/tmem_xen.c')
-rw-r--r--xen/common/tmem_xen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c
index 15f1806572..9b2a22cb76 100644
--- a/xen/common/tmem_xen.c
+++ b/xen/common/tmem_xen.c
@@ -12,6 +12,8 @@
#include <xen/paging.h>
#include <xen/domain_page.h>
#include <xen/cpu.h>
+#include <xen/init.h>
+#include <asm/p2m.h>
#define EXPORT /* indicates code other modules are dependent upon */
@@ -87,7 +89,7 @@ void tmh_copy_page(char *to, char*from)
#endif
}
-#ifdef __ia64__
+#if defined(__ia64__) || defined (CONFIG_ARM)
static inline void *cli_get_page(tmem_cli_mfn_t cmfn, unsigned long *pcli_mfn,
pfp_t **pcli_pfp, bool_t cli_write)
{