Subject: sys/dev/acpi/acpi_madt.c doesn't compile...
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 11/02/2003 22:13:34
... when ACPI_MADT_DEBUG is defined.
With the patch below at least compiling is possible. May be it's even the right
thing to do ;-)
-Kurt
--- /u/NetBSD/lsrc/sys/dev/acpi/acpi_madt.c 2003-11-02 22:00:56.000000000 +0100
+++ /usr/src/sys/dev/acpi/acpi_madt.c 2003-10-31 22:06:14.000000000 +0100
@@ -159,7 +159,7 @@
static void
acpi_print_lapic_addr_ovr(MADT_ADDRESS_OVERRIDE *p)
{
- printf("lapic addr override: %u\n", p->Address);
+ printf("lapic addr override: %llx\n", p->Address);
}
static void
@@ -178,7 +178,7 @@
}
static void
-acpi_print_platint(MADT_INTERRUPT_SOURCE *p)
+acpi_print_platint(INT_PLATFORM *p)
{
printf("platform int: type %u apid %u apeid %u\n",
p->InterruptType, p->ProcessorId, p->ProcessorEid);
@@ -206,9 +206,9 @@
void
acpi_madt_print(void)
{
- MULTIPLE_APIC_TABLE *ap;
+ APIC_TABLE *ap;
- ap = (MULTIPLE_APIC_TABLE *)AcpiGbl_MADT;
+ ap = (APIC_TABLE *)AcpiGbl_MADT;
printf("\n\nACPI MADT table:\n");
printf("default local APIC address: %x\n", ap->LocalApicAddress);
printf("system dual 8259%s present\n",
@@ -222,7 +222,7 @@
acpi_madt_print_entry(APIC_HEADER *hdrp, void *aux)
{
switch (hdrp->Type) {
- case APIC_PROCESSOR:
+ case APIC_PROC:
acpi_print_apic_proc((void *)hdrp);
break;
case APIC_IO: