diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-09-17 20:20:26 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-09-17 20:20:26 +0000 |
commit | 5e868db98e005d5f15207e74b5a516610710b6cb (patch) | |
tree | 330fdea02d7ace16fe90c51063f0a77f3cc1b13b | |
parent | 769adf710329272785e881899510f35faed0c7a0 (diff) |
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.c | 10 |
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, |