* H. Peter Anvin <[email protected]> wrote:

> The comment header is bogus... it describes what we do, not what 
> Windows does.

That comment certainly pretends to describe Windows behavior and then 
it goes to outline the differences in Linux behavior:

/*
 * Windows compatible x86 hardware expects the following on reboot:
 *
 * 1) If the FADT has the ACPI reboot register flag set, try it
 * 2) If still alive, write to the keyboard controller
 * 3) If still alive, write to the ACPI reboot register again
 * 4) If still alive, write to the keyboard controller again
 * 5) If still alive, call the EFI runtime service to reboot
 * 6) If still alive, write to the PCI IO port 0xCF9 to reboot
 * 7) If still alive, inform BIOS to do a proper reboot
 *
 * If the machine is still alive at this stage, it gives up. We default to
 * following the same pattern, except that if we're still alive after (7) we'll
 * try to force a triple fault and then cycle between hitting the keyboard
 * controller and doing that
 */

(The 'we default' means 'Linux defaults'.)

So that comment should be fixed to describe the hardware ABI (Windows 
behavior), to the extent it is known - and then outline where and why 
Linux deviates from that. (and preferably it should match Windows 
behavior and only _add_ to that behavior at the end of the reboot 
sequence.)

Before any other change is done beyond the revert of this latest 
broken commit.

Thanks,

        Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to