From a1537049b7dd15659bd64a22bd74921e5caf59c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 16 Feb 2005 02:12:14 +0000 Subject: [PATCH] Changed the way we're resetting the machine: we're now first trying the keyboard controller method, and only if that fails we fall back to what we have before. At least my SiS laptop now properly reboots, and doesn't just halt anymore - doesn't seem to have a negative impact on other machines, but please report any regressions :-) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11386 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/arch/x86/arch_cpu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kernel/core/arch/x86/arch_cpu.c b/src/kernel/core/arch/x86/arch_cpu.c index 49b441e468..88462b59b3 100755 --- a/src/kernel/core/arch/x86/arch_cpu.c +++ b/src/kernel/core/arch/x86/arch_cpu.c @@ -240,7 +240,12 @@ error: status_t arch_cpu_shutdown(bool _reboot) { - // we can't do anything else, yet + // ToDo: support real shutdown + + // try to reset the system using the keyboard controller + out8(0xfe, 0x64); + + // if that didn't help, try it this way reboot(); return B_OK; }