summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2017-10-27 06:48:14 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2017-10-27 06:48:14 +0000
commitbe067d186ada17ab1cb7366a3f925da9177b2a79 (patch)
tree18ebf4789641388821ae8866b28ebd04192157bc
parent549e64b2e051c5a785fc958546ad6ee2bf9f59cd (diff)
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.
*/