From 57b9fd2d9174b0602c4bb4939684de45d4ac7aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 2 Mar 2008 13:51:17 +0000 Subject: [PATCH] =?UTF-8?q?Applied=20patch=20by=20Olivier=20Coursi=C3=A8re?= =?UTF-8?q?:=20this=20should=20help=20rebooting=20on=20some=20machines,=20?= =?UTF-8?q?and=20fixes=20bug=20#1884,=20thanks!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24202 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_cpu.c b/src/system/kernel/arch/x86/arch_cpu.c index 744ba21f3b..c9579d39cc 100644 --- a/src/system/kernel/arch/x86/arch_cpu.c +++ b/src/system/kernel/arch/x86/arch_cpu.c @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Copyright 2002-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. * * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. @@ -684,6 +684,9 @@ arch_cpu_shutdown(bool rebootSystem) // try to reset the system using the keyboard controller out8(0xfe, 0x64); + // Give some time to the controller to do its job (0.5s) + snooze(500000); + // if that didn't help, try it this way reboot();