From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [PATCH v4 08/25] arm: compile tmem Date: Mon, 9 Jan 2012 17:59:44 +0000 Message-ID: <1326132001-21251-8-git-send-email-stefano.stabellini@eu.citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Tim.Deegan@citrix.com, Ian.Campbell@citrix.com, JBeulich@suse.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org From: Stefano Stabellini Include few missing header files; introduce defined(CONFIG_ARM) where required. Signed-off-by: Stefano Stabellini --- xen/common/tmem.c | 3 ++- xen/common/tmem_xen.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/common/tmem.c b/xen/common/tmem.c index 115465b..dd276df 100644 --- a/xen/common/tmem.c +++ b/xen/common/tmem.c @@ -22,6 +22,7 @@ #include #include #include +#include #define EXPORT /* indicates code other modules are dependent upon */ #define FORWARD @@ -49,7 +50,7 @@ #define INVERT_SENTINEL(_x,_y) _x->sentinel = ~_y##_SENTINEL #define ASSERT_SENTINEL(_x,_y) \ ASSERT(_x->sentinel != ~_y##_SENTINEL);ASSERT(_x->sentinel == _y##_SENTINEL) -#ifdef __i386__ +#if defined(__i386__) || defined(CONFIG_ARM) #define POOL_SENTINEL 0x87658765 #define OBJ_SENTINEL 0x12345678 #define OBJNODE_SENTINEL 0xfedcba09 diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c index 15f1806..9b2a22c 100644 --- a/xen/common/tmem_xen.c +++ b/xen/common/tmem_xen.c @@ -12,6 +12,8 @@ #include #include #include +#include +#include #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) { -- 1.7.2.5