summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2007-02-20 23:54:47 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2007-02-20 23:54:47 +0000
commit884859fda2b616489a8e4ca4745b650cd95582f7 (patch)
treec10548519988f38f12edc0f22e10deb065c7bfeb
parentf492cb777ac51e0b23a54a598e3704ce56522bcc (diff)
It helps to enable hpet... This fixes bnx not working on amd64.
-rw-r--r--sys/dev/acpi/acpihpet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpihpet.c b/sys/dev/acpi/acpihpet.c
index e15fb032246..8b6ea286b2d 100644
--- a/sys/dev/acpi/acpihpet.c
+++ b/sys/dev/acpi/acpihpet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpihpet.c,v 1.3 2007/02/20 22:25:45 marco Exp $ */
+/* $OpenBSD: acpihpet.c,v 1.4 2007/02/20 23:54:46 marco Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -106,6 +106,7 @@ acpihpet_attach(struct device *parent, struct device *self, void *aux)
hpet_timecounter.tc_frequency = (u_int32_t)freq;
hpet_timecounter.tc_priv = sc;
hpet_timecounter.tc_name = sc->sc_dev.dv_xname;
+ bus_space_write_4(sc->sc_iot, sc->sc_ioh, HPET_CONFIGURATION, 1);
tc_init(&hpet_timecounter);
#endif
}