summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpimadt.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2007-11-15 22:16:32 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2007-11-15 22:16:32 +0000
commitdd4992934104c50c9952b5b76f65b9fb82a9ca8d (patch)
tree92a1b01097a647e1a5834c3efbef577157a4768c /sys/dev/acpi/acpimadt.c
parente775548fb8328f05ffec72144b720e0a5ac44ec4 (diff)
Make acpicpu(4) attach to the existing CPUs only.
Problem reported by form@. Fix idea by kettenis@. Lots of help from deraadt@. Tested by deraadt@, form@ and me. ok deraadt marco
Diffstat (limited to 'sys/dev/acpi/acpimadt.c')
-rw-r--r--sys/dev/acpi/acpimadt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpimadt.c b/sys/dev/acpi/acpimadt.c
index 5ab8dd69d53..9a4ac7a3b61 100644
--- a/sys/dev/acpi/acpimadt.c
+++ b/sys/dev/acpi/acpimadt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpimadt.c,v 1.11 2007/10/08 04:15:15 krw Exp $ */
+/* $OpenBSD: acpimadt.c,v 1.12 2007/11/15 22:16:31 mikeb Exp $ */
/*
* Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org>
*
@@ -42,6 +42,8 @@
#define mp_nintrs mp_nintr
#endif
+u_int8_t acpi_lapic_flags[LAPIC_MAP_SIZE];
+
int acpimadt_match(struct device *, void *, void *);
void acpimadt_attach(struct device *, struct device *, void *);
@@ -165,6 +167,8 @@ acpimadt_attach(struct device *parent, struct device *self, void *aux)
lapic_map[entry->madt_lapic.acpi_proc_id] =
entry->madt_lapic.apic_id;
+ acpi_lapic_flags[entry->madt_lapic.acpi_proc_id] =
+ entry->madt_lapic.flags;
{
struct cpu_attach_args caa;