ia64/xen-unstable

changeset 13841:d7f7021902a2

[IA64] Fix for compiling PV-on-HVM driver on IPF

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author awilliam@xenbuild2.aw
date Mon Feb 05 15:41:58 2007 -0700 (2007-02-05)
parents d879bbaa3faa
children 311b27546cf6
files unmodified_drivers/linux-2.6/overrides.mk unmodified_drivers/linux-2.6/platform-pci/xen_support.c
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/overrides.mk	Mon Feb 05 15:23:39 2007 -0700
     1.2 +++ b/unmodified_drivers/linux-2.6/overrides.mk	Mon Feb 05 15:41:58 2007 -0700
     1.3 @@ -6,3 +6,6 @@
     1.4  # a Xen kernel to find the right headers)
     1.5  EXTRA_CFLAGS += -D__XEN_INTERFACE_VERSION__=0x00030202
     1.6  EXTRA_CFLAGS += -I$(M)/include -I$(M)/compat-include -DHAVE_XEN_PLATFORM_COMPAT_H
     1.7 +ifeq ($(ARCH),ia64)
     1.8 +  EXTRA_CFLAGS += -DCONFIG_VMX_GUEST
     1.9 +endif
     2.1 --- a/unmodified_drivers/linux-2.6/platform-pci/xen_support.c	Mon Feb 05 15:23:39 2007 -0700
     2.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/xen_support.c	Mon Feb 05 15:41:58 2007 -0700
     2.3 @@ -30,6 +30,23 @@
     2.4  #include <xen/platform-compat.h>
     2.5  #endif
     2.6  
     2.7 +#if defined (__ia64__)
     2.8 +unsigned long __hypercall(unsigned long a1, unsigned long a2,
     2.9 +			  unsigned long a3, unsigned long a4,
    2.10 +			  unsigned long a5, unsigned long cmd)
    2.11 +{
    2.12 +	unsigned long __res;
    2.13 +	__asm__ __volatile__ (";;\n"
    2.14 +		"mov r2=%1\n"
    2.15 +		"break 0x1000 ;;\n"
    2.16 +		"mov %0=r8 ;;\n"
    2.17 +		: "=r"(__res) : "r"(cmd) : "r2", "r8", "memory");
    2.18 +
    2.19 +	return __res;
    2.20 +}
    2.21 +EXPORT_SYMBOL(__hypercall);
    2.22 +#endif
    2.23 +
    2.24  void xen_machphys_update(unsigned long mfn, unsigned long pfn)
    2.25  {
    2.26  	BUG();