[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] In most of the codebase, use CONFIG_X86 in place of __i386__||__x86_64__
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1347478861 -3600 # Node ID d4761aa7daa244d8aae2496cb7eac9981c84c246 # Parent dab6583e187381811b84d2b93c63c9197a0a8e31 In most of the codebase, use CONFIG_X86 in place of __i386__||__x86_64__ Signed-off-by: Keir Fraser <keir@xxxxxxx> --- diff -r dab6583e1873 -r d4761aa7daa2 xen/common/lib.c --- a/xen/common/lib.c Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/common/lib.c Wed Sep 12 20:41:01 2012 +0100 @@ -423,7 +423,7 @@ s64 __ldivmod_helper(s64 a, s64 b, s64 * /* Compute with 96 bit intermediate result: (a*b)/c */ uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c) { -#ifdef __x86_64__ +#ifdef CONFIG_X86 asm ( "mul %%rdx; div %%rcx" : "=a" (a) : "0" (a), "d" (b), "c" (c) ); return a; #else diff -r dab6583e1873 -r d4761aa7daa2 xen/common/page_alloc.c --- a/xen/common/page_alloc.c Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/common/page_alloc.c Wed Sep 12 20:41:01 2012 +0100 @@ -1141,7 +1141,7 @@ void __init scrub_heap_pages(void) * XEN-HEAP SUB-ALLOCATOR */ -#if !defined(__x86_64__) +#if !defined(CONFIG_X86) void init_xenheap_pages(paddr_t ps, paddr_t pe) { diff -r dab6583e1873 -r d4761aa7daa2 xen/common/time.c --- a/xen/common/time.c Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/common/time.c Wed Sep 12 20:41:01 2012 +0100 @@ -43,7 +43,7 @@ struct tm gmtime(unsigned long t) const unsigned short int *ip; y = 1970; -#ifdef __x86_64__ +#if BITS_PER_LONG >= 64 /* Allow the concept of time before 1970. 64-bit only; for 32-bit * time after 2038 seems more important than time before 1970. */ while ( t & (1UL<<39) ) diff -r dab6583e1873 -r d4761aa7daa2 xen/drivers/passthrough/vtd/intremap.c --- a/xen/drivers/passthrough/vtd/intremap.c Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/drivers/passthrough/vtd/intremap.c Wed Sep 12 20:41:01 2012 +0100 @@ -31,7 +31,7 @@ #include "vtd.h" #include "extern.h" -#if defined(__i386__) || defined(__x86_64__) +#if defined(CONFIG_X86) #include <asm/apic.h> #include <asm/io_apic.h> #define nr_ioapic_entries(i) nr_ioapic_entries[i] @@ -302,7 +302,7 @@ static int ioapic_rte_to_remap_entry(str if ( rte_upper ) { -#if defined(__i386__) || defined(__x86_64__) +#if defined(CONFIG_X86) if ( x2apic_enabled ) new_ire.lo.dst = value; else @@ -422,7 +422,7 @@ void io_apic_write_remap_rte( __ioapic_write_entry(apic, ioapic_pin, 1, old_rte); } -#if defined(__i386__) || defined(__x86_64__) +#if defined(CONFIG_X86) static void set_msi_source_id(struct pci_dev *pdev, struct iremap_entry *ire) { diff -r dab6583e1873 -r d4761aa7daa2 xen/drivers/passthrough/vtd/iommu.c --- a/xen/drivers/passthrough/vtd/iommu.c Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/drivers/passthrough/vtd/iommu.c Wed Sep 12 20:41:01 2012 +0100 @@ -34,7 +34,7 @@ #include <xen/softirq.h> #include <asm/msi.h> #include <asm/irq.h> -#if defined(__i386__) || defined(__x86_64__) +#if defined(CONFIG_X86) #include <asm/hvm/vmx/vmx.h> #include <asm/p2m.h> #include <mach_apic.h> diff -r dab6583e1873 -r d4761aa7daa2 xen/drivers/passthrough/vtd/utils.c --- a/xen/drivers/passthrough/vtd/utils.c Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/drivers/passthrough/vtd/utils.c Wed Sep 12 20:41:01 2012 +0100 @@ -188,7 +188,7 @@ void print_vtd_entries(struct iommu *iom static void dump_iommu_info(unsigned char key) { -#if defined(__i386__) || defined(__x86_64__) +#if defined(CONFIG_X86) struct acpi_drhd_unit *drhd; struct iommu *iommu; int i; diff -r dab6583e1873 -r d4761aa7daa2 xen/include/xen/elfcore.h --- a/xen/include/xen/elfcore.h Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/include/xen/elfcore.h Wed Sep 12 20:41:01 2012 +0100 @@ -65,7 +65,7 @@ typedef struct { unsigned long xen_compile_date; unsigned long xen_compile_time; unsigned long tainted; -#if defined(__x86_64__) +#if defined(CONFIG_X86) unsigned long xen_phys_start; unsigned long dom0_pfn_to_mfn_frame_list_list; #endif diff -r dab6583e1873 -r d4761aa7daa2 xen/include/xen/hvm/irq.h --- a/xen/include/xen/hvm/irq.h Wed Sep 12 20:32:52 2012 +0100 +++ b/xen/include/xen/hvm/irq.h Wed Sep 12 20:41:01 2012 +0100 @@ -76,7 +76,7 @@ struct hvm_girq_dpci_mapping { #define NR_ISAIRQS 16 #define NR_LINK 4 -#if defined(__x86_64__) +#if defined(CONFIG_X86) # define NR_HVM_IRQS VIOAPIC_NUM_PINS #endif _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |