[haiku-commits] r41436 - haiku/trunk/src/system/kernel/arch/x86

  • From: mmlr@xxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 11 May 2011 13:16:11 +0200 (CEST)

Author: mmlr
Date: 2011-05-11 13:16:10 +0200 (Wed, 11 May 2011)
New Revision: 41436
Changeset: https://dev.haiku-os.org/changeset/41436

Modified:
   haiku/trunk/src/system/kernel/arch/x86/ioapic.cpp
Log:
Extended and fix some of the debug output.


Modified: haiku/trunk/src/system/kernel/arch/x86/ioapic.cpp
===================================================================
--- haiku/trunk/src/system/kernel/arch/x86/ioapic.cpp   2011-05-11 09:49:51 UTC 
(rev 41435)
+++ haiku/trunk/src/system/kernel/arch/x86/ioapic.cpp   2011-05-11 11:16:10 UTC 
(rev 41436)
@@ -306,9 +306,10 @@
        ioapic.global_interrupt_last
                = ioapic.global_interrupt_base + ioapic.max_redirection_entry;
 
-       dprintf("io-apic %u has range %u-%u, %u entries\n", ioapic.number,
-               ioapic.global_interrupt_base, ioapic.global_interrupt_last,
-               ioapic.max_redirection_entry + 1);
+       dprintf("io-apic %u has range %u-%u, %u entries, version 0x%08lx\n",
+               ioapic.number, ioapic.global_interrupt_base,
+               ioapic.global_interrupt_last, ioapic.max_redirection_entry + 1,
+               version);
 
        return B_OK;
 }
@@ -372,12 +373,22 @@
                        case ACPI_MADT_TYPE_IO_APIC:
                        {
                                acpi_madt_io_apic* info = 
(acpi_madt_io_apic*)apicEntry;
-                               dprintf("found io-apic with address %lu and 
global interrupt "
-                                       "base %lu\n", (uint32)info->Address,
+                               dprintf("found io-apic with address 0x%08lx and 
global "
+                                       "interrupt base %lu\n", 
(uint32)info->Address,
                                        (uint32)info->GlobalIrqBase);
 
-                               if (find_ioapic((int32)info->GlobalIrqBase) != 
NULL) {
+                               struct ioapic* alreadyMapped
+                                       = 
find_ioapic((int32)info->GlobalIrqBase);
+                               if (alreadyMapped != NULL) {
                                        // we've already mapped this IO-APIC 
(at boot)
+                                       dprintf("io-apic %u, already mapped at 
%p, range %u-%u, "
+                                               "%u entries, version 0x%08lx, 
apic-id %u\n",
+                                               alreadyMapped->number,
+                                               alreadyMapped->registers,
+                                               
alreadyMapped->global_interrupt_base,
+                                               
alreadyMapped->global_interrupt_last,
+                                               
alreadyMapped->max_redirection_entry + 1,
+                                               ioapic_read_32(*alreadyMapped, 
IO_APIC_VERSION));
                                        break;
                                }
 


Other related posts:

  • » [haiku-commits] r41436 - haiku/trunk/src/system/kernel/arch/x86 - mmlr