Profile
Matthew Garrett
About Matthew
Active Entries
- 1: Secure Boot isn't the only problem facing Linux on Windows 8 hardware
- 2: Dealing with UEFI non-volatile memory quirks
- 3: More in the series of bizarre UEFI bugs
- 4: TVs are all awful
- 5: Samsung laptop bug is not Linux specific
- 6: Playing with Thunderbolt under Linux on Apple hardware
- 7: A short introduction to TPMs
- 8: Rebooting
- 9: Update on leaked UEFI signing keys - probably no significant risk
- 10: Leaked UEFI signing keys
Expand Cut Tags
No cut tags
FreeBSD's x86 reboot code
Date: 2011-06-27 12:58 pm (UTC)- ACPI reset
- Keyboard reset, then wait half a second to see if that worked.
- Two writes to the reset control register (0xcf9), first trying a "soft" reset, then trying a "hard" reset, and then wait half a second to see if that worked.
- Use the Fast A20 and Init register (0x92) if it exists and give it a half-second.
- Triple fault.
- Hang.
The ACPI bits are in the ACPI code, the rest is in cpu_reset_real() in sys/{amd64,i386}/{amd64,i386}/vm_machdep.c:
http://svnweb.freebsd.org/base/head/sys/a