summaryrefslogtreecommitdiffstats
path: root/src/config/defaults
diff options
context:
space:
mode:
authorMichael Brown2013-03-22 14:42:16 +0100
committerMichael Brown2013-03-22 14:44:02 +0100
commit71cd50883896dc043f1025a3b96f3c0c7f3b2184 (patch)
tree0d8ec2942571e93d5dfc96e2ac8ff08823735ceb /src/config/defaults
parent[build] Avoid strict-aliasing warning for gcc 4.3 (diff)
downloadipxe-71cd50883896dc043f1025a3b96f3c0c7f3b2184.tar.gz
ipxe-71cd50883896dc043f1025a3b96f3c0c7f3b2184.tar.xz
ipxe-71cd50883896dc043f1025a3b96f3c0c7f3b2184.zip
[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>
Diffstat (limited to 'src/config/defaults')
-rw-r--r--src/config/defaults/efi.h3
-rw-r--r--src/config/defaults/linux.h1
-rw-r--r--src/config/defaults/pcbios.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/config/defaults/efi.h b/src/config/defaults/efi.h
index 923360ae..c453e89a 100644
--- a/src/config/defaults/efi.h
+++ b/src/config/defaults/efi.h
@@ -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 */
diff --git a/src/config/defaults/linux.h b/src/config/defaults/linux.h
index 50897560..666db6b8 100644
--- a/src/config/defaults/linux.h
+++ b/src/config/defaults/linux.h
@@ -16,6 +16,7 @@
#define SANBOOT_NULL
#define ENTROPY_LINUX
#define TIME_LINUX
+#define REBOOT_NULL
#define DRIVERS_LINUX
diff --git a/src/config/defaults/pcbios.h b/src/config/defaults/pcbios.h
index c52fca97..7debc8d2 100644
--- a/src/config/defaults/pcbios.h
+++ b/src/config/defaults/pcbios.h
@@ -20,6 +20,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define SANBOOT_PCBIOS
#define ENTROPY_RTC
#define TIME_RTC
+#define REBOOT_PCBIOS
#define IMAGE_ELF /* ELF image support */
#define IMAGE_MULTIBOOT /* MultiBoot image support */