HomeFreeBSD

stand: Move quit command to common commands

Description

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

13 leading to conflict

(cherry picked from commit 2101541ff1222788901d9503001add9f288a4c40)

Details

Provenance
impAuthored on Jul 30 2022, 10:43 AM
Parents
rG7041245be62b: kboot: Make console raw when we start
Branches
Unknown
Tags
Unknown