summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 579e87c52a1..5dd86499ec4 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.80 2007/02/18 01:37:49 marco Exp $ */
+/* $OpenBSD: acpi.c,v 1.81 2007/02/18 02:25:05 jordan Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -350,6 +350,7 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
sc->sc_iot = aaa->aaa_iot;
sc->sc_memt = aaa->aaa_memt;
+
if (acpi_map(aaa->aaa_pbase, sizeof(struct acpi_rsdp), &handle)) {
printf(": can't map memory\n");
return;
@@ -407,6 +408,9 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
}
#endif
+ /* Create opcode hashtable */
+ aml_hashopcodes();
+
acpi_enabled=1;
/* Create Default AML objects */