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

Details

Provenance
impAuthored on Jul 30 2022, 10:43 AM
Parents
rG43eebd036447: mpc85xx/pci: Conditionally reset PCI bridges
Branches
Unknown
Tags
Unknown