WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] fixmap.h, boot.c, tables.c, io_apic.h:

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] fixmap.h, boot.c, tables.c, io_apic.h:
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Wed, 04 May 2005 20:08:16 +0000
Delivery-date: Thu, 05 May 2005 11:03:13 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1439, 2005/05/04 21:08:16+01:00, cl349@xxxxxxxxxxxxxxxxxxxx

        fixmap.h, boot.c, tables.c, io_apic.h:
          Cleanup whitespace.
        Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>



 arch/xen/i386/kernel/acpi/boot.c   |   28 +++++++++++++++-------------
 drivers/acpi/tables.c              |    4 ++--
 include/asm-xen/asm-i386/fixmap.h  |    2 +-
 include/asm-xen/asm-i386/io_apic.h |   31 +++++++++++++++----------------
 4 files changed, 33 insertions(+), 32 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/acpi/boot.c 
b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/acpi/boot.c
--- a/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/acpi/boot.c  2005-05-05 
07:03:43 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/i386/kernel/acpi/boot.c  2005-05-05 
07:03:43 -04:00
@@ -109,17 +109,18 @@
 
 char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
 {
-        unsigned int i,j;
+       unsigned int i,j;
 
-        j = PAGE_ALIGN(size) >> PAGE_SHIFT;
-        for (i = 0; (i < FIX_ACPI_PAGES) && j ; i++, j--) {
-                __set_fixmap_ma(FIX_ACPI_END - i,
-                                (phys_addr & PAGE_MASK) + (i << PAGE_SHIFT),
-                                PAGE_KERNEL);
-        }
+       j = PAGE_ALIGN(size) >> PAGE_SHIFT;
+       for (i = 0; (i < FIX_ACPI_PAGES) && j ; i++, j--) {
+               __set_fixmap_ma(FIX_ACPI_END - i,
+                               (phys_addr & PAGE_MASK) + (i << PAGE_SHIFT),
+                               PAGE_KERNEL);
+       }
 
-        return (char *) __fix_to_virt(FIX_ACPI_END) + (phys_addr & ~PAGE_MASK);
+       return (char *) __fix_to_virt(FIX_ACPI_END) + (phys_addr & ~PAGE_MASK);
 }
+
 #else
 #ifdef CONFIG_X86_64
 
@@ -523,7 +524,7 @@
 {
        unsigned long           offset = 0;
        unsigned long           sig_len = sizeof("RSD PTR ") - 1;
-        unsigned long           vstart = isa_bus_to_virt(start);
+       unsigned long           vstart = isa_bus_to_virt(start);
 
        /*
         * Scan all 16-byte boundaries of the physical memory region for the
@@ -649,7 +650,6 @@
                else if (efi.acpi)
                        return __pa(efi.acpi);
        }
-
        /*
         * Scan memory looking for the RSDP signature. First search EBDA (low
         * memory) paragraphs and then search upper memory (E0000-FFFFF).
@@ -658,7 +658,7 @@
        if (!rsdp_phys)
                rsdp_phys = acpi_scan_rsdp (0xE0000, 0x20000);
 
-        __set_fixmap_ma(FIX_ACPI_RSDP_PAGE, rsdp_phys, PAGE_KERNEL);
+       __set_fixmap_ma(FIX_ACPI_RSDP_PAGE, rsdp_phys, PAGE_KERNEL);
 
        return rsdp_phys;
 }
@@ -674,7 +674,7 @@
        int count;
 
 #ifdef CONFIG_XEN
-        return 0;
+       return 0;
 #endif
 
        /* 
@@ -872,7 +872,9 @@
        }
 
 #ifdef __i386__
-       //check_acpi_pci();
+#ifndef CONFIG_XEN
+       check_acpi_pci();
+#endif
 #endif
 
        acpi_table_parse(ACPI_BOOT, acpi_parse_sbf);
diff -Nru a/linux-2.6.11-xen-sparse/drivers/acpi/tables.c 
b/linux-2.6.11-xen-sparse/drivers/acpi/tables.c
--- a/linux-2.6.11-xen-sparse/drivers/acpi/tables.c     2005-05-05 07:03:43 
-04:00
+++ b/linux-2.6.11-xen-sparse/drivers/acpi/tables.c     2005-05-05 07:03:43 
-04:00
@@ -581,8 +581,8 @@
                return -ENODEV;
        }
 
-        rsdp = (struct acpi_table_rsdp *) (__fix_to_virt(FIX_ACPI_RSDP_PAGE)
-                                           + (rsdp_phys & ~PAGE_MASK));
+       rsdp = (struct acpi_table_rsdp *) (__fix_to_virt(FIX_ACPI_RSDP_PAGE) +
+                                          (rsdp_phys & ~PAGE_MASK));
        if (!rsdp) {
                printk(KERN_WARNING PREFIX "Unable to map RSDP\n");
                return -ENODEV;
diff -Nru a/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/fixmap.h 
b/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/fixmap.h
--- a/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/fixmap.h 2005-05-05 
07:03:43 -04:00
+++ b/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/fixmap.h 2005-05-05 
07:03:43 -04:00
@@ -80,7 +80,7 @@
 #ifdef CONFIG_ACPI_BOOT
        FIX_ACPI_BEGIN,
        FIX_ACPI_END = FIX_ACPI_BEGIN + FIX_ACPI_PAGES - 1,
-        FIX_ACPI_RSDP_PAGE,
+       FIX_ACPI_RSDP_PAGE,
 #endif
 #ifdef CONFIG_PCI_MMCONFIG
        FIX_PCIE_MCFG,
diff -Nru a/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/io_apic.h 
b/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/io_apic.h
--- a/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/io_apic.h        
2005-05-05 07:03:43 -04:00
+++ b/linux-2.6.11-xen-sparse/include/asm-xen/asm-i386/io_apic.h        
2005-05-05 07:03:43 -04:00
@@ -165,28 +165,27 @@
 
 static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg)
 {
-        physdev_op_t op;
-        int ret;
+       physdev_op_t op;
+       int ret;
 
-        op.cmd = PHYSDEVOP_APIC_READ;
-        op.u.apic_op.apic = apic;
-        op.u.apic_op.offset = reg;
-        ret = HYPERVISOR_physdev_op(&op);
-        if (ret)
-                return ret;
-        return op.u.apic_op.value;
+       op.cmd = PHYSDEVOP_APIC_READ;
+       op.u.apic_op.apic = apic;
+       op.u.apic_op.offset = reg;
+       ret = HYPERVISOR_physdev_op(&op);
+       if (ret)
+               return ret;
+       return op.u.apic_op.value;
 }
 
 static inline void io_apic_write(unsigned int apic, unsigned int reg, unsigned 
int value)
 {
-        physdev_op_t op;
-        int ret;
+       physdev_op_t op;
 
-        op.cmd = PHYSDEVOP_APIC_WRITE;
-        op.u.apic_op.apic = apic;
-        op.u.apic_op.offset = reg;
-        op.u.apic_op.value = value;
-        ret = HYPERVISOR_physdev_op(&op);
+       op.cmd = PHYSDEVOP_APIC_WRITE;
+       op.u.apic_op.apic = apic;
+       op.u.apic_op.offset = reg;
+       op.u.apic_op.value = value;
+       HYPERVISOR_physdev_op(&op);
 }
 
 /*

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] fixmap.h, boot.c, tables.c, io_apic.h:, BitKeeper Bot <=