summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2002-11-24 02:27:07 +0000
committeriwasaki <iwasaki@FreeBSD.org>2002-11-24 02:27:07 +0000
commit723c83e3b4c94002b86e1efce61f943049884f7f (patch)
tree709ea465f83853e58e833dc3c48410efd3b454b2 /sys/i386
parent934f550c4f05597b7cc859497ca4482e96368ea2 (diff)
downloadFreeBSD-src-723c83e3b4c94002b86e1efce61f943049884f7f.zip
FreeBSD-src-723c83e3b4c94002b86e1efce61f943049884f7f.tar.gz
Add `if (!cold)' checkings for functions which is called via SYSINIT.
Loading acpi.ko with kldload is disallowed, however some functions were executed unexpectedly. Approved by: re
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/acpica/acpi_wakeup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c
index 6dc942e..53c16a4 100644
--- a/sys/i386/acpica/acpi_wakeup.c
+++ b/sys/i386/acpica/acpi_wakeup.c
@@ -301,6 +301,9 @@ static void
acpi_alloc_wakeup_handler(void)
{
+ if (!cold)
+ return;
+
if (bus_dma_tag_create(/* parent */ NULL, /* alignment */ 2, 0,
/* lowaddr below 1MB */ 0x9ffff,
/* highaddr */ BUS_SPACE_MAXADDR, NULL, NULL,
OpenPOWER on IntegriCloud