From: "KUWAMURA Shin'ya" Subject: Re: [PATCH] Fix ia64 tools build Date: Mon, 01 Nov 2010 17:39:56 +0900 (JST) Message-ID: <20101101.173956.27861895.kuwa@jp.fujitsu.com> References: <20101029.163952.304186232.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Mon_Nov__1_17_39_56_2010_686)--" 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: keir@xen.org, Ian.Campbell@eu.citrix.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Mon_Nov__1_17_39_56_2010_686)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Keir and Ian, >>>>> On Fri, 29 Oct 2010 08:55:31 +0100 >>>>> keir@xen.org(Keir Fraser) said: > > I think it would ne neater to have your own > tools/libxc/ia64/ac_ia64_tools.h, and then conditionally include that from > Xen's acenv.h (e.g., dependent on __XEN_TOOLS__). I created a patch for Keir's first advice. This patch introduces ac_ia64_tools.h and it only defines identifiers in order to avoid compilation errors. Because all identifiers can be easily led from the error message, it is trivial. Any comments? Best regards, -- KUWAMURA Shin'ya ----Next_Part(Mon_Nov__1_17_39_56_2010_686)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-ia64-tools-aclinux-v2.patch" diff -r bbffb400f507 tools/libxc/ia64/ac_ia64_tools.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/libxc/ia64/ac_ia64_tools.h Mon Nov 01 17:15:10 2010 +0900 @@ -0,0 +1,17 @@ +#ifndef AC_IA64_TOOLS_H +#define AC_IA64_TOOLS_H + +#define ACPI_MACHINE_WIDTH 64 +#define COMPILER_DEPENDENT_UINT64 unsigned long long +#define COMPILER_DEPENDENT_INT64 long long +typedef unsigned long long u64; +typedef long long s64; +typedef unsigned u32; +typedef int s32; +typedef unsigned char u8; +typedef unsigned short u16; +#define __iomem +#define asmlinkage +#define CONFIG_ACPI_BOOT + +#endif /* AC_IA64_TOOLS_H */ diff -r bbffb400f507 xen/include/acpi/platform/acenv.h --- a/xen/include/acpi/platform/acenv.h Mon Nov 01 15:35:03 2010 +0900 +++ b/xen/include/acpi/platform/acenv.h Mon Nov 01 17:15:10 2010 +0900 @@ -136,7 +136,9 @@ /*! [Begin] no source code translation */ -#if 1/*defined(_LINUX) || defined(__linux__)*/ +#if defined(__XEN_TOOLS__) && defined(__ia64__) +#include "ac_ia64_tools.h" +#elif 1 /*defined(_LINUX) || defined(__linux__)*/ #include "aclinux.h" #elif defined(_AED_EFI) ----Next_Part(Mon_Nov__1_17_39_56_2010_686)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Mon_Nov__1_17_39_56_2010_686)----