range (0x80 to 0xff). We're not going to understand OEM specific
structures, and some machines such as the Dell R6515 have significant
numbers of them.
ok kettenis@
-/* $OpenBSD: acpimadt.c,v 1.38 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: acpimadt.c,v 1.39 2022/11/24 04:04:39 jmatthew Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org>
*
break;
default:
- printf("%s: unknown apic structure type %x\n",
- self->dv_xname, entry->madt_lapic.apic_type);
+ if (entry->madt_lapic.apic_type < ACPI_MADT_OEM_RSVD) {
+ printf("%s: unknown apic structure type %x\n",
+ self->dv_xname,
+ entry->madt_lapic.apic_type);
+ }
}
addr += entry->madt_lapic.length;
-/* $OpenBSD: acpireg.h,v 1.58 2022/01/09 05:42:37 jsg Exp $ */
+/* $OpenBSD: acpireg.h,v 1.59 2022/11/24 04:04:39 jmatthew Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
uint8_t reserved[3];
} __packed;
+#define ACPI_MADT_OEM_RSVD 128
+
union acpi_madt_entry {
struct acpi_madt_lapic madt_lapic;
struct acpi_madt_ioapic madt_ioapic;