aboutsummaryrefslogtreecommitdiff
path: root/stand/efi
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-07-30 10:43:21 +0000
committerWarner Losh <imp@FreeBSD.org>2022-07-30 10:48:35 +0000
commit2101541ff1222788901d9503001add9f288a4c40 (patch)
treebfbc4a7cb2d3d2bbb27c91989c9cce54ddd87e4b /stand/efi
parent43eebd036447f5399dd4bfa9b9d3e4e6f6596f48 (diff)
downloadsrc-2101541ff1222788901d9503001add9f288a4c40.tar.gz
src-2101541ff1222788901d9503001add9f288a4c40.zip
stand: Move quit command to common commands
Since both EFI and the future kboot will benefit from a 'quit' command, move it from efi/loader/main.c to common/commands.c. In EFI this command exits back to the boot loader (which will cause the next BootXXXX in the BootOrder list to be attempted). In kboot, this will exit back to whatever called loader.kboot. In uboot this will cause a reset (which will restart uboot, not quite a simple exit, but will look similar) and in OFW it will execute OF_exit which should return to the openfirmware prompt. Sponsored by: Netflix
Diffstat (limited to 'stand/efi')
-rw-r--r--stand/efi/loader/main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index eb143989190d..d288c43d4592 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -1280,15 +1280,6 @@ command_reboot(int argc, char *argv[])
return (CMD_ERROR);
}
-COMMAND_SET(quit, "quit", "exit the loader", command_quit);
-
-static int
-command_quit(int argc, char *argv[])
-{
- exit(0);
- return (CMD_OK);
-}
-
COMMAND_SET(memmap, "memmap", "print memory map", command_memmap);
static int