From: "Jan Beulich" Subject: Re: removal of ia64 port Date: Tue, 03 Apr 2012 09:18:17 +0100 Message-ID: <4F7ACE69020000780007C3E0@nat28.tlf.novell.com> References: <4F79DEEB020000780007C0F3@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB6988E59.3__=" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Keir Fraser , xen-devel@lists.xen.org Cc: KUWAMURA Shin'ya , Ian.Campbell@citrix.com, xen-ia64-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartB6988E59.3__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline >>> On 02.04.12 at 17:33, Keir Fraser wrote: > On 02/04/2012 16:16, "Jan Beulich" wrote: >> now that we apparently having reached consensus here, are you >> going to purge the ia64 bits from the tree, or do you want me to? >=20 > Please go ahead. This is the patch I'm intending to commit (omitting all the ia64 files that are going to be removed). It retains IA64-specific bits in code imported from elsewhere (e.g. ACPI, EFI) as well as in the public headers. It also doesn't touch the tools, mini-os, and unmodified_drivers sub-trees. --- a/MAINTAINERS +++ b/MAINTAINERS @@ -138,14 +138,6 @@ M: Tim Deegan S: Supported F: tools/debugger/kdd/ =20 -IA64 ARCHITECTURE -M: KUWAMURA Shin'ya -S: Supported -L: xen-ia64-devel@lists.xensource.com=20 -F: xen/arch/ia64/* -F: xen/include/asm-ia64/* -F: tools/libxc/ia64/* - INTEL(R) TRUSTED EXECUTION TECHNOLOGY (TXT) M: Joseph Cihula M: Gang Wei --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -58,7 +58,6 @@ subdir-$(CONFIG_COMPAT) +=3D compat =20 subdir-$(x86_32) +=3D hvm subdir-$(x86_64) +=3D hvm -subdir-$(ia64) +=3D hvm =20 subdir-y +=3D libelf subdir-$(HAS_DEVICE_TREE) +=3D libfdt --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -1514,9 +1514,7 @@ gnttab_transfer( goto copyback; } =20 -#ifndef __ia64__ /* IA64 implicitly replaces the old page in steal_page().= */ guest_physmap_remove_page(d, gop.mfn, mfn, 0); -#endif flush_tlb_mask(d->domain_dirty_cpumask); =20 /* Find the target domain. */ --- a/xen/common/kexec.c +++ b/xen/common/kexec.c @@ -721,11 +721,7 @@ static void crash_save_vmcoreinfo(void) VMCOREINFO_STRUCT_SIZE(domain); =20 VMCOREINFO_OFFSET(page_info, count_info); -#ifdef __ia64__ - VMCOREINFO_OFFSET_SUB(page_info, u.inuse, _domain); -#else VMCOREINFO_OFFSET_SUB(page_info, v.inuse, _domain); -#endif VMCOREINFO_OFFSET(domain, domain_id); VMCOREINFO_OFFSET(domain, next_in_list); =20 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -23,9 +23,7 @@ #include #include #include -#ifndef __ia64__ #include -#endif #include #include #include --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -1141,7 +1141,7 @@ void __init scrub_heap_pages(void) * XEN-HEAP SUB-ALLOCATOR */ =20 -#if !defined(__x86_64__) && !defined(__ia64__) +#if !defined(__x86_64__) =20 void init_xenheap_pages(paddr_t ps, paddr_t pe) { --- a/xen/common/tmem_xen.c +++ b/xen/common/tmem_xen.c @@ -88,7 +88,7 @@ void tmh_copy_page(char *to, char*from) #endif } =20 -#if defined(__ia64__) || defined (CONFIG_ARM) +#if 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) { --- a/xen/drivers/cpufreq/cpufreq.c +++ b/xen/drivers/cpufreq/cpufreq.c @@ -442,16 +442,6 @@ int set_px_pminfo(uint32_t acpi_id, stru goto out; } =20 -#ifdef CONFIG_IA64 - /* for IA64, currently it only supports FFH */ - if (dom0_px_info->control_register.space_id !=3D - ACPI_ADR_SPACE_FIXED_HARDWARE) - { - ret =3D -EINVAL; - goto out; - } -#endif - memcpy ((void *)&pxpt->control_register, (void *)&dom0_px_info->control_register, sizeof(struct xen_pct_register)); @@ -493,7 +483,6 @@ int set_px_pminfo(uint32_t acpi_id, stru { #ifdef CONFIG_X86 /* for X86, check domain coordination */ - /* for IA64, _PSD is optional for current IA64 cpufreq algorithm = */ if (dom0_px_info->shared_type !=3D CPUFREQ_SHARED_TYPE_ALL && dom0_px_info->shared_type !=3D CPUFREQ_SHARED_TYPE_ANY && dom0_px_info->shared_type !=3D CPUFREQ_SHARED_TYPE_HW) --- a/xen/drivers/passthrough/Makefile +++ b/xen/drivers/passthrough/Makefile @@ -1,5 +1,4 @@ subdir-$(x86) +=3D vtd -subdir-$(ia64) +=3D vtd subdir-$(x86) +=3D amd subdir-$(x86_64) +=3D x86 =20 --- a/xen/drivers/passthrough/io.c +++ b/xen/drivers/passthrough/io.c @@ -419,7 +419,6 @@ int hvm_do_IRQ_dpci(struct domain *d, st return 1; } =20 -#ifdef SUPPORT_MSI_REMAPPING /* called with d->event_lock held */ static void __msi_pirq_eoi(struct hvm_pirq_dpci *pirq_dpci) { @@ -479,7 +478,6 @@ static int hvm_pci_msi_assert(struct dom ? send_guest_pirq(d, pirq) : vmsi_deliver_pirq(d, pirq_dpci)); } -#endif =20 static int _hvm_dirq_assist(struct domain *d, struct hvm_pirq_dpci = *pirq_dpci, void *arg) @@ -489,13 +487,12 @@ static int _hvm_dirq_assist(struct domai =20 if ( test_and_clear_bool(pirq_dpci->masked) ) { -#ifdef SUPPORT_MSI_REMAPPING if ( pirq_dpci->flags & HVM_IRQ_DPCI_GUEST_MSI ) { hvm_pci_msi_assert(d, pirq_dpci); return 0; } -#endif + list_for_each_entry ( digl, &pirq_dpci->digl_list, list ) { struct pirq *info =3D dpci_pirq(pirq_dpci); @@ -508,13 +505,11 @@ static int _hvm_dirq_assist(struct domai hvm_pci_intx_assert(d, device, intx); pirq_dpci->pending++; =20 -#ifdef SUPPORT_MSI_REMAPPING if ( pirq_dpci->flags & HVM_IRQ_DPCI_TRANSLATE ) { /* for translated MSI to INTx interrupt, eoi as early as = possible */ __msi_pirq_eoi(pirq_dpci); } -#endif } =20 /* --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -593,17 +593,6 @@ int iommu_do_domctl( bus =3D (domctl->u.assign_device.machine_sbdf >> 8) & 0xff; devfn =3D domctl->u.assign_device.machine_sbdf & 0xff; =20 -#ifdef __ia64__ /* XXX Is this really needed? */ - if ( device_assigned(seg, bus, devfn) ) - { - printk(XENLOG_G_ERR "XEN_DOMCTL_assign_device: " - "%04x:%02x:%02x.%u already assigned, or non-existent\n"= , - seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); - ret =3D -EINVAL; - goto assign_device_out; - } -#endif - ret =3D assign_device(d, seg, bus, devfn); if ( ret ) printk(XENLOG_G_ERR "XEN_DOMCTL_assign_device: " @@ -632,14 +621,6 @@ int iommu_do_domctl( bus =3D (domctl->u.assign_device.machine_sbdf >> 8) & 0xff; devfn =3D domctl->u.assign_device.machine_sbdf & 0xff; =20 -#ifdef __ia64__ /* XXX Is this really needed? */ - if ( !device_assigned(seg, bus, devfn) ) - { - ret =3D -EINVAL; - goto deassign_device_out; - } -#endif - spin_lock(&pcidevs_lock); ret =3D deassign_device(d, seg, bus, devfn); spin_unlock(&pcidevs_lock); --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -696,7 +696,6 @@ void __init setup_dom0_pci_devices( spin_unlock(&pcidevs_lock); } =20 -#ifdef SUPPORT_MSI_REMAPPING static int _dump_pci_devices(struct pci_seg *pseg, void *arg) { struct pci_dev *pdev; @@ -738,8 +737,6 @@ static int __init setup_dump_pcidevs(voi return 0; } __initcall(setup_dump_pcidevs); -#endif - =20 /* * Local variables: --- a/xen/drivers/passthrough/vtd/Makefile +++ b/xen/drivers/passthrough/vtd/Makefile @@ -1,5 +1,4 @@ subdir-$(x86) +=3D x86 -subdir-$(ia64) +=3D ia64 =20 obj-y +=3D iommu.o obj-y +=3D dmar.o --- a/xen/drivers/passthrough/vtd/intremap.c +++ b/xen/drivers/passthrough/vtd/intremap.c @@ -31,26 +31,7 @@ #include "vtd.h" #include "extern.h" =20 -#ifdef __ia64__ -#define nr_ioapics iosapic_get_nr_iosapics() -#define nr_ioapic_entries(i) iosapic_get_nr_pins(i) -#define __io_apic_read(apic, reg) \ - (*IO_APIC_BASE(apic) =3D reg, *(IO_APIC_BASE(apic)+4)) -#define __io_apic_write(apic, reg, val) \ - (*IO_APIC_BASE(apic) =3D reg, *(IO_APIC_BASE(apic)+4) =3D (val)) -#define __ioapic_read_entry(apic, pin, raw) ({ \ - struct IO_xAPIC_route_entry _e_; \ - ASSERT(raw); \ - ((u32 *)&_e_)[0] =3D __io_apic_read(apic, 0x10 + 2 * (pin)); \ - ((u32 *)&_e_)[1] =3D __io_apic_read(apic, 0x11 + 2 * (pin)); \ - _e_; \ -}) -#define __ioapic_write_entry(apic, pin, raw, ent) ({ \ - ASSERT(raw); \ - __io_apic_write(apic, 0x10 + 2 * (pin), ((u32 *)&(ent))[0]); \ - __io_apic_write(apic, 0x11 + 2 * (pin), ((u32 *)&(ent))[1]); \ -}) -#else +#if defined(__i386__) || defined(__x86_64__) #include #include #define nr_ioapic_entries(i) nr_ioapic_entries[i] @@ -326,8 +307,6 @@ static int ioapic_rte_to_remap_entry(str new_ire.lo.dst =3D value; else new_ire.lo.dst =3D (value >> 24) << 8; -#else /* __ia64__ */ - new_ire.lo.dst =3D value >> 16; #endif } else @@ -625,12 +604,8 @@ static int msi_msg_to_remap_entry( new_ire.lo.dm =3D (msg->address_lo >> MSI_ADDR_DESTMODE_SHIFT) & 0x1; new_ire.lo.tm =3D (msg->data >> MSI_DATA_TRIGGER_SHIFT) & 0x1; new_ire.lo.dlm =3D (msg->data >> MSI_DATA_DELIVERY_MODE_SHIFT) & 0x1; -#ifdef CONFIG_X86 /* Hardware require RH =3D 1 for LPR delivery mode */ new_ire.lo.rh =3D (new_ire.lo.dlm =3D=3D dest_LowestPrio); -#else - new_ire.lo.rh =3D 0; -#endif new_ire.lo.avail =3D 0; new_ire.lo.res_1 =3D 0; new_ire.lo.vector =3D (msg->data >> MSI_DATA_VECTOR_SHIFT) & @@ -703,18 +678,6 @@ void msi_msg_write_remap_rte( =20 msi_msg_to_remap_entry(iommu, pdev, msi_desc, msg); } -#elif defined(__ia64__) -void msi_msg_read_remap_rte( - struct msi_desc *msi_desc, struct msi_msg *msg) -{ - /* TODO. */ -} - -void msi_msg_write_remap_rte( - struct msi_desc *msi_desc, struct msi_msg *msg) -{ - /* TODO. */ -} #endif =20 int enable_intremap(struct iommu *iommu, int eim) @@ -838,8 +801,6 @@ out: spin_unlock_irqrestore(&iommu->register_lock, flags); } =20 -#ifndef __ia64__ - /* * This function is used to enable Interrupt remapping when * enable x2apic @@ -914,5 +875,3 @@ void iommu_disable_x2apic_IR(void) for_each_drhd_unit ( drhd ) disable_qinval(drhd->iommu); } - -#endif /* !__ia64__ */ --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -33,7 +33,7 @@ #include #include #include -#ifndef __ia64__ +#if defined(__i386__) || defined(__x86_64__) #include #include #include @@ -44,10 +44,6 @@ #include "vtd.h" #include "../ats.h" =20 -#ifdef __ia64__ -#define nr_ioapics iosapic_get_nr_iosapics() -#endif - /* Possible unfiltered LAPIC/MSI messages from untrusted sources? */ bool_t __read_mostly untrusted_msi; =20 @@ -1057,11 +1053,7 @@ static unsigned int dma_msi_startup(stru return 0; } =20 -#ifndef __ia64__ static void dma_msi_end(struct irq_desc *desc, u8 vector) -#else -static void dma_msi_end(struct irq_desc *desc) -#endif { dma_msi_unmask(desc); ack_APIC_irq(); @@ -1841,7 +1833,6 @@ void iommu_pte_flush(struct domain *d, u =20 static int vtd_ept_page_compatible(struct iommu *iommu) { -#ifndef __ia64__ u64 ept_cap, vtd_cap =3D iommu->cap; =20 /* EPT is not initialised yet, so we must check the capability in @@ -1851,9 +1842,6 @@ static int vtd_ept_page_compatible(struc =20 return ( ept_has_2mb(ept_cap) =3D=3D cap_sps_2mb(vtd_cap)=20 && ept_has_1gb(ept_cap) =3D=3D cap_sps_1gb(vtd_cap) ); -#else - return 0; -#endif } =20 /* @@ -1861,7 +1849,6 @@ static int vtd_ept_page_compatible(struc */ void iommu_set_pgd(struct domain *d) { -#ifndef __ia64__ struct hvm_iommu *hd =3D domain_hvm_iommu(d); mfn_t pgd_mfn; =20 @@ -1872,7 +1859,6 @@ void iommu_set_pgd(struct domain *d) =20 pgd_mfn =3D pagetable_get_mfn(p2m_get_pagetable(p2m_get_hostp2m(d))); hd->pgd_maddr =3D pagetable_get_paddr(pagetable_from_mfn(pgd_mfn)); -#endif } =20 static int rmrr_identity_mapping(struct domain *d, --- a/xen/drivers/passthrough/vtd/utils.c +++ b/xen/drivers/passthrough/vtd/utils.c @@ -301,8 +301,7 @@ static void dump_iommu_info(unsigned cha } } #else - printk("%s: not implemnted on IA64 for now.\n", __func__); - /* ia64: TODO */ + printk("%s: not implemented for now\n", __func__); #endif } =20 --- a/xen/drivers/passthrough/vtd/vtd.h +++ b/xen/drivers/passthrough/vtd/vtd.h @@ -26,44 +26,8 @@ #define MAP_ME_PHANTOM_FUNC 1 #define UNMAP_ME_PHANTOM_FUNC 0 =20 -/* Accomodate both IOAPIC and IOSAPIC. */ -#ifndef __ia64__ +/* Allow for both IOAPIC and IOSAPIC. */ #define IO_xAPIC_route_entry IO_APIC_route_entry -#else -struct IO_xAPIC_route_entry { - __u32 vector : 8, - delivery_mode : 3, /* 000: FIXED - * 001: lowest prio - * 111: ExtINT - */ - dest_mode : 1, /* 0: physical, 1: logical */ - delivery_status : 1, - polarity : 1, - irr : 1, - trigger : 1, /* 0: edge, 1: level */ - mask : 1, /* 0: enabled, 1: disabled */ - __reserved_2 : 15; - - union { - struct { __u32 - __reserved_1 : 24, - physical_dest : 4, - __reserved_2 : 4; - } physical; - - struct { __u32 - __reserved_1 : 24, - logical_dest : 8; - } logical; - - struct { __u32 - __reserved_1 : 16, - dest_id : 16; - }; - } dest; - -} __attribute__ ((packed)); -#endif =20 struct IO_APIC_route_remap_entry { union { --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -38,7 +38,7 @@ suffix-$(CONFIG_X86) :=3D \#pragma pa endif =20 public-$(CONFIG_X86) :=3D $(wildcard public/arch-x86/*.h public/arch-x86/*= /*.h) -public-$(CONFIG_IA64) :=3D $(wildcard public/arch-ia64/*.h public/arch-ia6= 4/*/*.h) +public-$(CONFIG_ARM) :=3D $(wildcard public/arch-arm/*.h public/arch-arm/*= /*.h) =20 .PHONY: all all: $(headers-y) @@ -74,8 +74,6 @@ compat/xlat.h: xlat.lst $(filter-out com mv -f $@.new $@ =20 ifeq ($(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH)) -# public/arch-ia64.h explicitly bails on __STRICT_ANSI__ -ifeq ($(CONFIG_IA64),) =20 all: headers.chk =20 @@ -84,7 +82,6 @@ headers.chk: $(filter-out public/arch-%=20 mv $@.new $@ =20 endif -endif =20 clean:: rm -rf compat headers.chk --- a/xen/include/asm-x86/hvm/irq.h +++ b/xen/include/asm-x86/hvm/irq.h @@ -104,11 +104,4 @@ struct hvm_intack hvm_vcpu_has_pending_i struct hvm_intack hvm_vcpu_ack_pending_irq(struct vcpu *v, struct hvm_intack intack); =20 -/* - * Currently IA64 Xen doesn't support MSI. So for x86, we define this = macro - * to control the conditional compilation of some MSI-related functions. - * This macro will be removed once IA64 has MSI support. - */ -#define SUPPORT_MSI_REMAPPING 1 - #endif /* __ASM_X86_HVM_IRQ_H__ */ --- a/xen/include/asm-x86/hvm/vioapic.h +++ b/xen/include/asm-x86/hvm/vioapic.h @@ -41,7 +41,7 @@ /* Direct registers. */ #define VIOAPIC_REG_SELECT 0x00 #define VIOAPIC_REG_WINDOW 0x10 -#define VIOAPIC_REG_EOI 0x40 /* IA64 IOSAPIC only */ +#define VIOAPIC_REG_EOI 0x40 =20 /* Indirect registers. */ #define VIOAPIC_REG_APIC_ID 0x00 /* x86 IOAPIC only */ --- a/xen/include/xen/cpumask.h +++ b/xen/include/xen/cpumask.h @@ -82,7 +82,7 @@ typedef struct cpumask{ DECLARE_BITMAP(b =20 extern unsigned int nr_cpu_ids; =20 -#if NR_CPUS > 4 * BITS_PER_LONG && !defined(__ia64__) +#if NR_CPUS > 4 * BITS_PER_LONG /* Assuming NR_CPUS is huge, a runtime limit is more efficient. Also, * not all bits may be allocated. */ extern unsigned int nr_cpumask_bits; @@ -263,37 +263,6 @@ static inline const cpumask_t *cpumask_o return (const cpumask_t *)(p - cpu / BITS_PER_LONG); } =20 -#if defined(__ia64__) /* XXX needs cleanup */ -#define CPU_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(NR_CPUS) - -#if NR_CPUS <=3D BITS_PER_LONG - -#define CPU_MASK_ALL \ -/*(cpumask_t)*/ { { \ - [BITS_TO_LONGS(NR_CPUS)-1] =3D CPU_MASK_LAST_WORD = \ -} } - -#else - -#define CPU_MASK_ALL \ -/*(cpumask_t)*/ { { \ - [0 ... BITS_TO_LONGS(NR_CPUS)-2] =3D ~0UL, \ - [BITS_TO_LONGS(NR_CPUS)-1] =3D CPU_MASK_LAST_WORD = \ -} } - -#endif - -#define CPU_MASK_NONE \ -/*(cpumask_t)*/ { { \ - 0UL \ -} } - -#define CPU_MASK_CPU0 \ -/*(cpumask_t)*/ { { \ - [0] =3D 1UL \ -} } -#endif /* __ia64__ */ - #define cpumask_bits(maskp) ((maskp)->bits) =20 static inline int cpumask_scnprintf(char *buf, int len, --- a/xen/include/xen/efi.h +++ b/xen/include/xen/efi.h @@ -5,15 +5,11 @@ #include #endif =20 -#if defined(__ia64__) -# include_next +#if defined(__i386__) +# define efi_enabled 0 #else - -# if defined(__i386__) -# define efi_enabled 0 -# else extern const bool_t efi_enabled; -# endif +#endif =20 #define EFI_INVALID_TABLE_ADDR (~0UL) =20 @@ -27,8 +23,6 @@ struct efi { =20 extern struct efi efi; =20 -#endif - #ifndef __ASSEMBLY__ =20 union xenpf_efi_info; --- a/xen/include/xen/elfcore.h +++ b/xen/include/xen/elfcore.h @@ -69,9 +69,6 @@ typedef struct { unsigned long xen_phys_start; unsigned long dom0_pfn_to_mfn_frame_list_list; #endif -#if defined(__ia64__) - unsigned long dom0_mm_pgd_mfn; -#endif } crash_xen_info_t; =20 #endif /* __ELFCOREC_H__ */ --- a/xen/include/xen/hvm/irq.h +++ b/xen/include/xen/hvm/irq.h @@ -78,8 +78,6 @@ struct hvm_girq_dpci_mapping { #define NR_LINK 4 #if defined(__i386__) || defined(__x86_64__) # define NR_HVM_IRQS VIOAPIC_NUM_PINS -#elif defined(__ia64__) -# define NR_HVM_IRQS VIOSAPIC_NUM_PINS #endif =20 /* Protected by domain's event_lock */ --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -35,11 +35,7 @@ extern bool_t iommu_debug; extern bool_t amd_iommu_perdev_intremap; =20 /* Does this domain have a P2M table we can use as its IOMMU pagetable? = */ -#ifndef __ia64__ #define iommu_use_hap_pt(d) (hap_enabled(d) && iommu_hap_pt_share) -#else -#define iommu_use_hap_pt(d) 0 -#endif =20 extern struct rangeset *mmio_ro_ranges; =20 --- a/xen/include/xen/irq.h +++ b/xen/include/xen/irq.h @@ -95,37 +95,19 @@ int arch_init_one_irq_desc(struct irq_de =20 #define irq_desc_initialized(desc) ((desc)->handler !=3D NULL) =20 -#if defined(__ia64__) -extern irq_desc_t irq_desc[NR_VECTORS]; - -#define setup_irq(irq, action) \ - setup_irq_vector(irq_to_vector(irq), action) - -#define release_irq(irq) \ - release_irq_vector(irq_to_vector(irq)) - -#define request_irq(irq, handler, irqflags, devname, devid) \ - request_irq_vector(irq_to_vector(irq), handler, irqflags, devname, = devid) - -#elif defined(__arm__) +#if defined(__arm__) =20 #define NR_IRQS 1024 #define nr_irqs NR_IRQS extern irq_desc_t irq_desc[NR_IRQS]; =20 -extern int setup_irq(unsigned int irq, struct irqaction *); -extern void release_irq(unsigned int irq); -extern int request_irq(unsigned int irq, - void (*handler)(int, void *, struct cpu_user_regs *), - unsigned long irqflags, const char * devname, void = *dev_id); +#endif =20 -#else extern int setup_irq(unsigned int irq, struct irqaction *); extern void release_irq(unsigned int irq); extern int request_irq(unsigned int irq, void (*handler)(int, void *, struct cpu_user_regs *), unsigned long irqflags, const char * devname, void = *dev_id); -#endif =20 extern hw_irq_controller no_irq_type; extern void no_action(int cpl, void *dev_id, struct cpu_user_regs *regs); --- a/xen/include/xen/libelf.h +++ b/xen/include/xen/libelf.h @@ -23,7 +23,7 @@ #ifndef __XEN_LIBELF_H__ #define __XEN_LIBELF_H__ =20 -#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) || = defined(__arm__) +#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) #define XEN_ELF_LITTLE_ENDIAN #else #error define architectural endianness --- a/xen/include/xen/symbols.h +++ b/xen/include/xen/symbols.h @@ -21,13 +21,9 @@ static void __check_printsym_format(cons { } =20 -/* ia64 and ppc64 use function descriptors, which contain the real = address */ -#if defined(CONFIG_IA64) || defined(CONFIG_PPC64) -#define print_fn_descriptor_symbol(fmt, addr) \ -do { \ - unsigned long *__faddr =3D (unsigned long*) addr; \ - print_symbol(fmt, __faddr[0]); \ -} while (0) +#if 0 +#define print_fn_descriptor_symbol(fmt, addr) \ + print_symbol(fmt, *(unsigned long *)addr) #else #define print_fn_descriptor_symbol(fmt, addr) print_symbol(fmt, addr) #endif --=__PartB6988E59.3__= Content-Type: text/plain; name="ia64-purge.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ia64-purge.patch" It retains IA64-specific bits in code imported from elsewhere (e.g.=0AACPI,= EFI) as well as in the public headers.=0A=0AIt also doesn't touch the = tools, mini-os, and unmodified_drivers=0Asub-trees.=0A=0A--- a/MAINTAINERS= =0A+++ b/MAINTAINERS=0A@@ -138,14 +138,6 @@ M: Tim Deegan =0A= S: Supported=0A F: tools/debugger/kdd/=0A =0A-IA64 ARCHITECTURE=0A-M: = KUWAMURA Shin'ya =0A-S: Supported=0A-L: xen-ia64-de= vel@lists.xensource.com=0A-F: xen/arch/ia64/*=0A-F: xen/include/asm-ia6= 4/*=0A-F: tools/libxc/ia64/*=0A-=0A INTEL(R) TRUSTED EXECUTION = TECHNOLOGY (TXT)=0A M: Joseph Cihula =0A M: = Gang Wei =0A--- a/xen/common/Makefile=0A+++ b/xen/commo= n/Makefile=0A@@ -58,7 +58,6 @@ subdir-$(CONFIG_COMPAT) +=3D compat=0A =0A = subdir-$(x86_32) +=3D hvm=0A subdir-$(x86_64) +=3D hvm=0A-subdir-$(ia64) = +=3D hvm=0A =0A subdir-y +=3D libelf=0A subdir-$(HAS_DEVICE_TREE) +=3D = libfdt=0A--- a/xen/common/grant_table.c=0A+++ b/xen/common/grant_table.c=0A= @@ -1514,9 +1514,7 @@ gnttab_transfer(=0A goto copyback;=0A = }=0A =0A-#ifndef __ia64__ /* IA64 implicitly replaces the old page in = steal_page(). */=0A guest_physmap_remove_page(d, gop.mfn, mfn, = 0);=0A-#endif=0A flush_tlb_mask(d->domain_dirty_cpumask);=0A =0A = /* Find the target domain. */=0A--- a/xen/common/kexec.c=0A+++ = b/xen/common/kexec.c=0A@@ -721,11 +721,7 @@ static void crash_save_vmcorein= fo(void)=0A VMCOREINFO_STRUCT_SIZE(domain);=0A =0A VMCOREINFO_OFFSE= T(page_info, count_info);=0A-#ifdef __ia64__=0A- VMCOREINFO_OFFSET_SUB(p= age_info, u.inuse, _domain);=0A-#else=0A VMCOREINFO_OFFSET_SUB(page_inf= o, v.inuse, _domain);=0A-#endif=0A VMCOREINFO_OFFSET(domain, domain_id)= ;=0A VMCOREINFO_OFFSET(domain, next_in_list);=0A =0A--- a/xen/common/me= mory.c=0A+++ b/xen/common/memory.c=0A@@ -23,9 +23,7 @@=0A #include = =0A #include =0A #include =0A= -#ifndef __ia64__=0A #include =0A-#endif=0A #include =0A #include =0A #include =0A--- a/xen/common/= page_alloc.c=0A+++ b/xen/common/page_alloc.c=0A@@ -1141,7 +1141,7 @@ void = __init scrub_heap_pages(void)=0A * XEN-HEAP SUB-ALLOCATOR=0A */=0A = =0A-#if !defined(__x86_64__) && !defined(__ia64__)=0A+#if !defined(__x86_64= __)=0A =0A void init_xenheap_pages(paddr_t ps, paddr_t pe)=0A {=0A--- = a/xen/common/tmem_xen.c=0A+++ b/xen/common/tmem_xen.c=0A@@ -88,7 +88,7 @@ = void tmh_copy_page(char *to, char*from)=0A #endif=0A }=0A =0A-#if = defined(__ia64__) || defined (CONFIG_ARM)=0A+#if defined(CONFIG_ARM)=0A = static inline void *cli_get_page(tmem_cli_mfn_t cmfn, unsigned long = *pcli_mfn,=0A pfp_t **pcli_pfp, bool_t = cli_write)=0A {=0A--- a/xen/drivers/cpufreq/cpufreq.c=0A+++ b/xen/drivers/c= pufreq/cpufreq.c=0A@@ -442,16 +442,6 @@ int set_px_pminfo(uint32_t = acpi_id, stru=0A goto out;=0A }=0A =0A-#ifdef = CONFIG_IA64=0A- /* for IA64, currently it only supports FFH */=0A- = if (dom0_px_info->control_register.space_id !=3D=0A- = ACPI_ADR_SPACE_FIXED_HARDWARE)=0A- {=0A- ret =3D = -EINVAL;=0A- goto out;=0A- }=0A-#endif=0A-=0A = memcpy ((void *)&pxpt->control_register,=0A (void = *)&dom0_px_info->control_register,=0A sizeof(struct = xen_pct_register));=0A@@ -493,7 +483,6 @@ int set_px_pminfo(uint32_t = acpi_id, stru=0A {=0A #ifdef CONFIG_X86=0A /* for X86, check = domain coordination */=0A- /* for IA64, _PSD is optional for = current IA64 cpufreq algorithm */=0A if (dom0_px_info->shared_type = !=3D CPUFREQ_SHARED_TYPE_ALL &&=0A dom0_px_info->shared_type = !=3D CPUFREQ_SHARED_TYPE_ANY &&=0A dom0_px_info->shared_type = !=3D CPUFREQ_SHARED_TYPE_HW)=0A--- a/xen/drivers/passthrough/Makefile=0A+++= b/xen/drivers/passthrough/Makefile=0A@@ -1,5 +1,4 @@=0A subdir-$(x86) = +=3D vtd=0A-subdir-$(ia64) +=3D vtd=0A subdir-$(x86) +=3D amd=0A subdir-$(x= 86_64) +=3D x86=0A =0A--- a/xen/drivers/passthrough/io.c=0A+++ b/xen/driver= s/passthrough/io.c=0A@@ -419,7 +419,6 @@ int hvm_do_IRQ_dpci(struct domain = *d, st=0A return 1;=0A }=0A =0A-#ifdef SUPPORT_MSI_REMAPPING=0A /* = called with d->event_lock held */=0A static void __msi_pirq_eoi(struct = hvm_pirq_dpci *pirq_dpci)=0A {=0A@@ -479,7 +478,6 @@ static int hvm_pci_msi= _assert(struct dom=0A ? send_guest_pirq(d, pirq)=0A = : vmsi_deliver_pirq(d, pirq_dpci));=0A }=0A-#endif=0A =0A static int = _hvm_dirq_assist(struct domain *d, struct hvm_pirq_dpci *pirq_dpci,=0A = void *arg)=0A@@ -489,13 +487,12 @@ static int = _hvm_dirq_assist(struct domai=0A =0A if ( test_and_clear_bool(pirq_dpci= ->masked) )=0A {=0A-#ifdef SUPPORT_MSI_REMAPPING=0A if ( = pirq_dpci->flags & HVM_IRQ_DPCI_GUEST_MSI )=0A {=0A = hvm_pci_msi_assert(d, pirq_dpci);=0A return 0;=0A = }=0A-#endif=0A+=0A list_for_each_entry ( digl, &pirq_dpci->digl_lis= t, list )=0A {=0A struct pirq *info =3D dpci_pirq(pirq_= dpci);=0A@@ -508,13 +505,11 @@ static int _hvm_dirq_assist(struct domai=0A = hvm_pci_intx_assert(d, device, intx);=0A = pirq_dpci->pending++;=0A =0A-#ifdef SUPPORT_MSI_REMAPPING=0A = if ( pirq_dpci->flags & HVM_IRQ_DPCI_TRANSLATE )=0A {=0A = /* for translated MSI to INTx interrupt, eoi as early as = possible */=0A __msi_pirq_eoi(pirq_dpci);=0A = }=0A-#endif=0A }=0A =0A /*=0A--- a/xen/drivers/passthrough/= iommu.c=0A+++ b/xen/drivers/passthrough/iommu.c=0A@@ -593,17 +593,6 @@ int = iommu_do_domctl(=0A bus =3D (domctl->u.assign_device.machine_sbdf = >> 8) & 0xff;=0A devfn =3D domctl->u.assign_device.machine_sbdf & = 0xff;=0A =0A-#ifdef __ia64__ /* XXX Is this really needed? */=0A- = if ( device_assigned(seg, bus, devfn) )=0A- {=0A- = printk(XENLOG_G_ERR "XEN_DOMCTL_assign_device: "=0A- = "%04x:%02x:%02x.%u already assigned, or non-existent\n",=0A- = seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn));=0A- ret =3D = -EINVAL;=0A- goto assign_device_out;=0A- }=0A-#endif=0A-= =0A ret =3D assign_device(d, seg, bus, devfn);=0A if ( ret = )=0A printk(XENLOG_G_ERR "XEN_DOMCTL_assign_device: "=0A@@ = -632,14 +621,6 @@ int iommu_do_domctl(=0A bus =3D (domctl->u.assign= _device.machine_sbdf >> 8) & 0xff;=0A devfn =3D domctl->u.assign_de= vice.machine_sbdf & 0xff;=0A =0A-#ifdef __ia64__ /* XXX Is this really = needed? */=0A- if ( !device_assigned(seg, bus, devfn) )=0A- = {=0A- ret =3D -EINVAL;=0A- goto deassign_device_out;= =0A- }=0A-#endif=0A-=0A spin_lock(&pcidevs_lock);=0A = ret =3D deassign_device(d, seg, bus, devfn);=0A spin_unlock(&pcide= vs_lock);=0A--- a/xen/drivers/passthrough/pci.c=0A+++ b/xen/drivers/passthr= ough/pci.c=0A@@ -696,7 +696,6 @@ void __init setup_dom0_pci_devices(=0A = spin_unlock(&pcidevs_lock);=0A }=0A =0A-#ifdef SUPPORT_MSI_REMAPPING=0A = static int _dump_pci_devices(struct pci_seg *pseg, void *arg)=0A {=0A = struct pci_dev *pdev;=0A@@ -738,8 +737,6 @@ static int __init setup_dump_pc= idevs(voi=0A return 0;=0A }=0A __initcall(setup_dump_pcidevs);=0A-#endi= f=0A-=0A =0A /*=0A * Local variables:=0A--- a/xen/drivers/passthrough/vtd/= Makefile=0A+++ b/xen/drivers/passthrough/vtd/Makefile=0A@@ -1,5 +1,4 @@=0A = subdir-$(x86) +=3D x86=0A-subdir-$(ia64) +=3D ia64=0A =0A obj-y +=3D = iommu.o=0A obj-y +=3D dmar.o=0A--- a/xen/drivers/passthrough/vtd/intremap.c= =0A+++ b/xen/drivers/passthrough/vtd/intremap.c=0A@@ -31,26 +31,7 @@=0A = #include "vtd.h"=0A #include "extern.h"=0A =0A-#ifdef __ia64__=0A-#define = nr_ioapics iosapic_get_nr_iosapics()=0A-#define nr_ioapic_entr= ies(i) iosapic_get_nr_pins(i)=0A-#define __io_apic_read(apic, reg) \=0A- = (*IO_APIC_BASE(apic) =3D reg, *(IO_APIC_BASE(apic)+4))=0A-#define = __io_apic_write(apic, reg, val) \=0A- (*IO_APIC_BASE(apic) =3D reg, = *(IO_APIC_BASE(apic)+4) =3D (val))=0A-#define __ioapic_read_entry(apic, = pin, raw) ({ \=0A- struct IO_xAPIC_route_entry _e_; \=0A- ASSERT(raw)= ; \=0A- ((u32 *)&_e_)[0] =3D __io_apic_read(apic, 0x10 + 2 * (pin)); = \=0A- ((u32 *)&_e_)[1] =3D __io_apic_read(apic, 0x11 + 2 * (pin)); = \=0A- _e_; \=0A-})=0A-#define __ioapic_write_entry(apic, pin, raw, ent) = ({ \=0A- ASSERT(raw); \=0A- __io_apic_write(apic, 0x10 + 2 * (pin), = ((u32 *)&(ent))[0]); \=0A- __io_apic_write(apic, 0x11 + 2 * (pin), = ((u32 *)&(ent))[1]); \=0A-})=0A-#else=0A+#if defined(__i386__) || = defined(__x86_64__)=0A #include =0A #include =0A= #define nr_ioapic_entries(i) nr_ioapic_entries[i]=0A@@ -326,8 +307,6 @@ = static int ioapic_rte_to_remap_entry(str=0A new_ire.lo.dst =3D = value;=0A else=0A new_ire.lo.dst =3D (value >> 24) << = 8;=0A-#else /* __ia64__ */=0A- new_ire.lo.dst =3D value >> 16;=0A = #endif=0A }=0A else=0A@@ -625,12 +604,8 @@ static int msi_msg_to_re= map_entry(=0A new_ire.lo.dm =3D (msg->address_lo >> MSI_ADDR_DESTMODE_S= HIFT) & 0x1;=0A new_ire.lo.tm =3D (msg->data >> MSI_DATA_TRIGGER_SHIFT)= & 0x1;=0A new_ire.lo.dlm =3D (msg->data >> MSI_DATA_DELIVERY_MODE_SHIF= T) & 0x1;=0A-#ifdef CONFIG_X86=0A /* Hardware require RH =3D 1 for LPR = delivery mode */=0A new_ire.lo.rh =3D (new_ire.lo.dlm =3D=3D dest_Lowes= tPrio);=0A-#else=0A- new_ire.lo.rh =3D 0;=0A-#endif=0A new_ire.lo.av= ail =3D 0;=0A new_ire.lo.res_1 =3D 0;=0A new_ire.lo.vector =3D = (msg->data >> MSI_DATA_VECTOR_SHIFT) &=0A@@ -703,18 +678,6 @@ void = msi_msg_write_remap_rte(=0A =0A msi_msg_to_remap_entry(iommu, pdev, = msi_desc, msg);=0A }=0A-#elif defined(__ia64__)=0A-void msi_msg_read_remap_= rte(=0A- struct msi_desc *msi_desc, struct msi_msg *msg)=0A-{=0A- /* = TODO. */=0A-}=0A-=0A-void msi_msg_write_remap_rte(=0A- struct msi_desc = *msi_desc, struct msi_msg *msg)=0A-{=0A- /* TODO. */=0A-}=0A #endif=0A = =0A int enable_intremap(struct iommu *iommu, int eim)=0A@@ -838,8 +801,6 = @@ out:=0A spin_unlock_irqrestore(&iommu->register_lock, flags);=0A = }=0A =0A-#ifndef __ia64__=0A-=0A /*=0A * This function is used to enable = Interrupt remapping when=0A * enable x2apic=0A@@ -914,5 +875,3 @@ void = iommu_disable_x2apic_IR(void)=0A for_each_drhd_unit ( drhd )=0A = disable_qinval(drhd->iommu);=0A }=0A-=0A-#endif /* !__ia64__ */=0A--- = a/xen/drivers/passthrough/vtd/iommu.c=0A+++ b/xen/drivers/passthrough/vtd/i= ommu.c=0A@@ -33,7 +33,7 @@=0A #include =0A #include = =0A #include =0A-#ifndef __ia64__=0A+#if defined(__i3= 86__) || defined(__x86_64__)=0A #include =0A #include = =0A #include =0A@@ -44,10 +44,6 @@=0A #include = "vtd.h"=0A #include "../ats.h"=0A =0A-#ifdef __ia64__=0A-#define nr_ioapics= iosapic_get_nr_iosapics()=0A-#endif=0A-=0A /* Possible = unfiltered LAPIC/MSI messages from untrusted sources? */=0A bool_t = __read_mostly untrusted_msi;=0A =0A@@ -1057,11 +1053,7 @@ static unsigned = int dma_msi_startup(stru=0A return 0;=0A }=0A =0A-#ifndef __ia64__=0A = static void dma_msi_end(struct irq_desc *desc, u8 vector)=0A-#else=0A-stati= c void dma_msi_end(struct irq_desc *desc)=0A-#endif=0A {=0A dma_msi_unm= ask(desc);=0A ack_APIC_irq();=0A@@ -1841,7 +1833,6 @@ void iommu_pte_fl= ush(struct domain *d, u=0A =0A static int vtd_ept_page_compatible(struct = iommu *iommu)=0A {=0A-#ifndef __ia64__=0A u64 ept_cap, vtd_cap =3D = iommu->cap;=0A =0A /* EPT is not initialised yet, so we must check the = capability in=0A@@ -1851,9 +1842,6 @@ static int vtd_ept_page_compatible(st= ruc=0A =0A return ( ept_has_2mb(ept_cap) =3D=3D cap_sps_2mb(vtd_cap) = =0A && ept_has_1gb(ept_cap) =3D=3D cap_sps_1gb(vtd_cap) = );=0A-#else=0A- return 0;=0A-#endif=0A }=0A =0A /*=0A@@ -1861,7 +1849,6 = @@ static int vtd_ept_page_compatible(struc=0A */=0A void iommu_set_pgd(st= ruct domain *d)=0A {=0A-#ifndef __ia64__=0A struct hvm_iommu *hd =3D = domain_hvm_iommu(d);=0A mfn_t pgd_mfn;=0A =0A@@ -1872,7 +1859,6 @@ = void iommu_set_pgd(struct domain *d)=0A =0A pgd_mfn =3D pagetable_get_m= fn(p2m_get_pagetable(p2m_get_hostp2m(d)));=0A hd->pgd_maddr =3D = pagetable_get_paddr(pagetable_from_mfn(pgd_mfn));=0A-#endif=0A }=0A =0A = static int rmrr_identity_mapping(struct domain *d,=0A--- a/xen/drivers/pass= through/vtd/utils.c=0A+++ b/xen/drivers/passthrough/vtd/utils.c=0A@@ = -301,8 +301,7 @@ static void dump_iommu_info(unsigned cha=0A }=0A = }=0A #else=0A- printk("%s: not implemnted on IA64 for now.\n", = __func__);=0A- /* ia64: TODO */=0A+ printk("%s: not implemented for = now\n", __func__);=0A #endif=0A }=0A =0A--- a/xen/drivers/passthrough/vtd/v= td.h=0A+++ b/xen/drivers/passthrough/vtd/vtd.h=0A@@ -26,44 +26,8 @@=0A = #define MAP_ME_PHANTOM_FUNC 1=0A #define UNMAP_ME_PHANTOM_FUNC = 0=0A =0A-/* Accomodate both IOAPIC and IOSAPIC. */=0A-#ifndef __ia64__=0A+/= * Allow for both IOAPIC and IOSAPIC. */=0A #define IO_xAPIC_route_entry = IO_APIC_route_entry=0A-#else=0A-struct IO_xAPIC_route_entry {=0A- __u32 = vector : 8,=0A- delivery_mode : 3, /* 000: FIXED=0A- = * 001: lowest prio=0A- = * 111: ExtINT=0A- */=0A- = dest_mode : 1, /* 0: physical, 1: logical */=0A- delivery_s= tatus : 1,=0A- polarity : 1,=0A- irr : = 1,=0A- trigger : 1, /* 0: edge, 1: level */=0A- = mask : 1, /* 0: enabled, 1: disabled */=0A- __reserved= _2 : 15;=0A-=0A- union {=0A- struct { __u32=0A- = __reserved_1 : 24,=0A- physical_dest : 4,=0A- = __reserved_2 : 4;=0A- } physical;=0A-=0A- struct { = __u32=0A- __reserved_1 : 24,=0A- logical_dest = : 8;=0A- } logical;=0A-=0A- struct { __u32=0A- = __reserved_1 : 16,=0A- dest_id : 16;=0A- = };=0A- } dest;=0A-=0A-} __attribute__ ((packed));=0A-#endif=0A =0A = struct IO_APIC_route_remap_entry {=0A union {=0A--- a/xen/include/Makef= ile=0A+++ b/xen/include/Makefile=0A@@ -38,7 +38,7 @@ suffix-$(CONFIG_X86) = :=3D \#pragma pa=0A endif=0A =0A public-$(CONFIG_X86) :=3D $(wildcard = public/arch-x86/*.h public/arch-x86/*/*.h)=0A-public-$(CONFIG_IA64) :=3D = $(wildcard public/arch-ia64/*.h public/arch-ia64/*/*.h)=0A+public-$(CONFIG_= ARM) :=3D $(wildcard public/arch-arm/*.h public/arch-arm/*/*.h)=0A =0A = .PHONY: all=0A all: $(headers-y)=0A@@ -74,8 +74,6 @@ compat/xlat.h: = xlat.lst $(filter-out com=0A mv -f $@.new $@=0A =0A ifeq ($(XEN_TARGET_A= RCH),$(XEN_COMPILE_ARCH))=0A-# public/arch-ia64.h explicitly bails on = __STRICT_ANSI__=0A-ifeq ($(CONFIG_IA64),)=0A =0A all: headers.chk=0A =0A@@ = -84,7 +82,6 @@ headers.chk: $(filter-out public/arch-% =0A mv $@.new = $@=0A =0A endif=0A-endif=0A =0A clean::=0A rm -rf compat headers.chk= =0A--- a/xen/include/asm-x86/hvm/irq.h=0A+++ b/xen/include/asm-x86/hvm/irq.= h=0A@@ -104,11 +104,4 @@ struct hvm_intack hvm_vcpu_has_pending_i=0A = struct hvm_intack hvm_vcpu_ack_pending_irq(struct vcpu *v,=0A = struct hvm_intack intack);=0A =0A-/*=0A- * = Currently IA64 Xen doesn't support MSI. So for x86, we define this = macro=0A- * to control the conditional compilation of some MSI-related = functions.=0A- * This macro will be removed once IA64 has MSI support.=0A- = */=0A-#define SUPPORT_MSI_REMAPPING 1=0A-=0A #endif /* __ASM_X86_HVM_IRQ_H_= _ */=0A--- a/xen/include/asm-x86/hvm/vioapic.h=0A+++ b/xen/include/asm-x86/= hvm/vioapic.h=0A@@ -41,7 +41,7 @@=0A /* Direct registers. */=0A #define = VIOAPIC_REG_SELECT 0x00=0A #define VIOAPIC_REG_WINDOW 0x10=0A-#define = VIOAPIC_REG_EOI 0x40 /* IA64 IOSAPIC only */=0A+#define VIOAPIC_REG_EOI= 0x40=0A =0A /* Indirect registers. */=0A #define VIOAPIC_REG_APIC_ID = 0x00 /* x86 IOAPIC only */=0A--- a/xen/include/xen/cpumask.h=0A+++ = b/xen/include/xen/cpumask.h=0A@@ -82,7 +82,7 @@ typedef struct cpumask{ = DECLARE_BITMAP(b=0A =0A extern unsigned int nr_cpu_ids;=0A =0A-#if NR_CPUS = > 4 * BITS_PER_LONG && !defined(__ia64__)=0A+#if NR_CPUS > 4 * BITS_PER_LON= G=0A /* Assuming NR_CPUS is huge, a runtime limit is more efficient. = Also,=0A * not all bits may be allocated. */=0A extern unsigned int = nr_cpumask_bits;=0A@@ -263,37 +263,6 @@ static inline const cpumask_t = *cpumask_o=0A return (const cpumask_t *)(p - cpu / BITS_PER_LONG);=0A = }=0A =0A-#if defined(__ia64__) /* XXX needs cleanup */=0A-#define = CPU_MASK_LAST_WORD BITMAP_LAST_WORD_MASK(NR_CPUS)=0A-=0A-#if NR_CPUS <=3D = BITS_PER_LONG=0A-=0A-#define CPU_MASK_ALL = \=0A-/*(cpumask_t)*/ { { = \=0A- [BITS_TO_LONGS(NR_CPUS)-1] =3D CPU_MASK_LAST_WORD = \=0A-} }=0A-=0A-#else=0A-=0A-#define CPU_MASK_ALL = \=0A-/*(cpumask_t)*/ { { = \=0A- [0 ... BITS_TO_LONGS(NR_CPU= S)-2] =3D ~0UL, \=0A- [BITS_TO_LONGS(NR_CPUS)-1] =3D = CPU_MASK_LAST_WORD \=0A-} }=0A-=0A-#endif=0A-=0A-#defi= ne CPU_MASK_NONE = \=0A-/*(cpumask_t)*/ { { = \=0A- 0UL = \=0A-} }=0A-=0A-#define CPU_MASK_CPU0 = \=0A-/*(cpumask_t)*/ { { = \=0A- [0] =3D 1UL = \=0A-} }=0A-#endif /* __ia64__ */=0A-=0A #define cpumask_bits(maskp) = ((maskp)->bits)=0A =0A static inline int cpumask_scnprintf(char *buf, int = len,=0A--- a/xen/include/xen/efi.h=0A+++ b/xen/include/xen/efi.h=0A@@ = -5,15 +5,11 @@=0A #include =0A #endif=0A =0A-#if defined(__ia6= 4__)=0A-# include_next =0A+#if defined(__i386__)=0A+# define = efi_enabled 0=0A #else=0A-=0A-# if defined(__i386__)=0A-# define = efi_enabled 0=0A-# else=0A extern const bool_t efi_enabled;=0A-# endif=0A+#= endif=0A =0A #define EFI_INVALID_TABLE_ADDR (~0UL)=0A =0A@@ -27,8 +23,6 @@ = struct efi {=0A =0A extern struct efi efi;=0A =0A-#endif=0A-=0A #ifndef = __ASSEMBLY__=0A =0A union xenpf_efi_info;=0A--- a/xen/include/xen/elfcore.h= =0A+++ b/xen/include/xen/elfcore.h=0A@@ -69,9 +69,6 @@ typedef struct {=0A = unsigned long xen_phys_start;=0A unsigned long dom0_pfn_to_mfn_fram= e_list_list;=0A #endif=0A-#if defined(__ia64__)=0A- unsigned long = dom0_mm_pgd_mfn;=0A-#endif=0A } crash_xen_info_t;=0A =0A #endif /* = __ELFCOREC_H__ */=0A--- a/xen/include/xen/hvm/irq.h=0A+++ b/xen/include/xen= /hvm/irq.h=0A@@ -78,8 +78,6 @@ struct hvm_girq_dpci_mapping {=0A #define = NR_LINK 4=0A #if defined(__i386__) || defined(__x86_64__)=0A # define = NR_HVM_IRQS VIOAPIC_NUM_PINS=0A-#elif defined(__ia64__)=0A-# define = NR_HVM_IRQS VIOSAPIC_NUM_PINS=0A #endif=0A =0A /* Protected by domain's = event_lock */=0A--- a/xen/include/xen/iommu.h=0A+++ b/xen/include/xen/iommu= .h=0A@@ -35,11 +35,7 @@ extern bool_t iommu_debug;=0A extern bool_t = amd_iommu_perdev_intremap;=0A =0A /* Does this domain have a P2M table we = can use as its IOMMU pagetable? */=0A-#ifndef __ia64__=0A #define = iommu_use_hap_pt(d) (hap_enabled(d) && iommu_hap_pt_share)=0A-#else=0A-#def= ine iommu_use_hap_pt(d) 0=0A-#endif=0A =0A extern struct rangeset = *mmio_ro_ranges;=0A =0A--- a/xen/include/xen/irq.h=0A+++ b/xen/include/xen/= irq.h=0A@@ -95,37 +95,19 @@ int arch_init_one_irq_desc(struct irq_de=0A = =0A #define irq_desc_initialized(desc) ((desc)->handler !=3D NULL)=0A = =0A-#if defined(__ia64__)=0A-extern irq_desc_t irq_desc[NR_VECTORS];=0A-=0A= -#define setup_irq(irq, action) \=0A- setup_irq_vector(irq_to_vector(irq= ), action)=0A-=0A-#define release_irq(irq) \=0A- release_irq_vector(irq_= to_vector(irq))=0A-=0A-#define request_irq(irq, handler, irqflags, = devname, devid) \=0A- request_irq_vector(irq_to_vector(irq), handler, = irqflags, devname, devid)=0A-=0A-#elif defined(__arm__)=0A+#if defined(__ar= m__)=0A =0A #define NR_IRQS 1024=0A #define nr_irqs NR_IRQS=0A = extern irq_desc_t irq_desc[NR_IRQS];=0A =0A-extern int setup_irq(unsigned = int irq, struct irqaction *);=0A-extern void release_irq(unsigned int = irq);=0A-extern int request_irq(unsigned int irq,=0A- void = (*handler)(int, void *, struct cpu_user_regs *),=0A- = unsigned long irqflags, const char * devname, void *dev_id);=0A+#endif=0A = =0A-#else=0A extern int setup_irq(unsigned int irq, struct irqaction = *);=0A extern void release_irq(unsigned int irq);=0A extern int request_irq= (unsigned int irq,=0A void (*handler)(int, void *, struct = cpu_user_regs *),=0A unsigned long irqflags, const char * = devname, void *dev_id);=0A-#endif=0A =0A extern hw_irq_controller = no_irq_type;=0A extern void no_action(int cpl, void *dev_id, struct = cpu_user_regs *regs);=0A--- a/xen/include/xen/libelf.h=0A+++ b/xen/include/= xen/libelf.h=0A@@ -23,7 +23,7 @@=0A #ifndef __XEN_LIBELF_H__=0A #define = __XEN_LIBELF_H__=0A =0A-#if defined(__i386__) || defined(__x86_64__) || = defined(__ia64__) || defined(__arm__)=0A+#if defined(__i386__) || = defined(__x86_64__) || defined(__arm__)=0A #define XEN_ELF_LITTLE_ENDIAN=0A= #else=0A #error define architectural endianness=0A--- a/xen/include/xen/sy= mbols.h=0A+++ b/xen/include/xen/symbols.h=0A@@ -21,13 +21,9 @@ static void = __check_printsym_format(cons=0A {=0A }=0A =0A-/* ia64 and ppc64 use = function descriptors, which contain the real address */=0A-#if defined(CONF= IG_IA64) || defined(CONFIG_PPC64)=0A-#define print_fn_descriptor_symbol(fmt= , addr) \=0A-do { = \=0A- unsigned long *__faddr =3D (unsigned long*) addr; = \=0A- print_symbol(fmt, __faddr[0]); \=0A-} while (0)=0A+#if = 0=0A+#define print_fn_descriptor_symbol(fmt, addr) \=0A+ print_symbo= l(fmt, *(unsigned long *)addr)=0A #else=0A #define print_fn_descriptor_symb= ol(fmt, addr) print_symbol(fmt, addr)=0A #endif=0A --=__PartB6988E59.3__= 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.xen.org http://lists.xen.org/xen-devel --=__PartB6988E59.3__=--