/* 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
* XEN-HEAP SUB-ALLOCATOR
*/
-#if !defined(__x86_64__)
+#if !defined(CONFIG_X86)
void init_xenheap_pages(paddr_t ps, paddr_t pe)
{
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) )
#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]
if ( rte_upper )
{
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(CONFIG_X86)
if ( x2apic_enabled )
new_ire.lo.dst = value;
else
__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)
{
#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>
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;
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
#define NR_ISAIRQS 16
#define NR_LINK 4
-#if defined(__x86_64__)
+#if defined(CONFIG_X86)
# define NR_HVM_IRQS VIOAPIC_NUM_PINS
#endif