[efi] Add "reboot" command for EFI

Abstract out the ability to reboot the system to a separate reboot()
function (with platform-specific implementations), add an EFI
implementation, and make the existing "reboot" command available under
EFI.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2013-03-22 13:42:16 +00:00
parent 11ad0bafbf
commit 71cd508838
14 changed files with 286 additions and 2 deletions

View File

@@ -19,8 +19,11 @@
#define BOFM_EFI
#define ENTROPY_NULL
#define TIME_NULL
#define REBOOT_EFI
#define IMAGE_EFI /* EFI image support */
#define IMAGE_SCRIPT /* iPXE script image support */
#define REBOOT_CMD /* Reboot command */
#endif /* CONFIG_DEFAULTS_EFI_H */