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
This commit is contained in:
Axel Dörfler 2005-02-16 02:12:14 +00:00
parent 6a1a734c5f
commit a1537049b7
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}