summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2017-10-27 06:48:13 +0000
committeryasuoka <yasuoka@openbsd.org>2017-10-27 06:48:13 +0000
commit76d9e8f867fe12c0504aaa54c3d30d6b4b9e578d (patch)
tree6b3e6724f9b11f16f5dba6cfd0ec1a7c980dce1a
parentwhitespace at EOL (diff)
downloadwireguard-openbsd-76d9e8f867fe12c0504aaa54c3d30d6b4b9e578d.tar.xz
wireguard-openbsd-76d9e8f867fe12c0504aaa54c3d30d6b4b9e578d.zip
Call i8254_startclock() earlier to make delay() usable. Actually HP
DL 20 Gen9 with "UEFI optimized mode" requires this initialization. tested by Pedro Ramos ok kettenis
-rw-r--r--sys/arch/amd64/amd64/machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index b765d58e278..a5011d72f32 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.234 2017/10/23 15:41:29 mikeb Exp $ */
+/* $OpenBSD: machdep.c,v 1.235 2017/10/27 06:48:13 yasuoka Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
@@ -1253,6 +1253,8 @@ init_x86_64(paddr_t first_avail)
x86_bus_space_init();
+ i8254_startclock();
+
/*
* Attach the glass console early in case we need to display a panic.
*/