summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-09-17 20:20:25 +0000
committerguenther <guenther@openbsd.org>2016-09-17 20:20:25 +0000
commit4595568d5ebcf48c828380e300ae982c0c92f931 (patch)
treeb2597add886c8173419489bb9a18efbd080fcdf4
parentAdd an interface to find the ARM.exidx table for use by the ARM EHABI unwinder. (diff)
downloadwireguard-openbsd-4595568d5ebcf48c828380e300ae982c0c92f931.tar.xz
wireguard-openbsd-4595568d5ebcf48c828380e300ae982c0c92f931.zip
Report a LAPIC address override entry in the dmesg if it doesn't match
the normal one ok kettenis@ mlarkin@
-rw-r--r--sys/dev/acpi/acpimadt.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpimadt.c b/sys/dev/acpi/acpimadt.c
index 4d67501b700..c783928d66f 100644
--- a/sys/dev/acpi/acpimadt.c
+++ b/sys/dev/acpi/acpimadt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpimadt.c,v 1.35 2016/07/28 21:57:56 kettenis Exp $ */
+/* $OpenBSD: acpimadt.c,v 1.36 2016/09/17 20:20:25 guenther Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org>
*
@@ -231,6 +231,14 @@ acpimadt_attach(struct device *parent, struct device *self, void *aux)
struct apic_attach_args aaa;
switch (entry->madt_lapic.apic_type) {
+ case ACPI_MADT_LAPIC_OVERRIDE:
+ if (entry->madt_lapic_override.lapic_address !=
+ madt->local_apic_address) {
+ printf("%s: ignored LAPIC override 0x%llx\n",
+ self->dv_xname,
+ entry->madt_lapic_override.lapic_address);
+ }
+ break;
case ACPI_MADT_LAPIC:
dprintf("%s: LAPIC: acpi_proc_id %x, apic_id %x, flags 0x%x\n",
self->dv_xname, entry->madt_lapic.acpi_proc_id,