HomeFreeBSD

loader: Add loader.exit

Description

loader: Add loader.exit

Add loader.exit(status). While one can get alomst this behavior with
loader.perform("quit"), quit doesn't allow a value to be returned to the
firmware. The interpretation of 'status' is firmware specific. This can
be used when autobooting doesn't work in scripts, for example, to allow
the firmware to try something else...

Sponsored by: Netflix

Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44094

(cherry picked from commit 9398a495eb305d5bf240bc998ee2f6128d75f4ca)

Details

Provenance
impAuthored on Feb 27 2024, 3:19 AM
Reviewer
kevans
Differential Revision
D44094: loader: Add loader.exit
Parents
rG7cc0ac566600: loader/efi: Only include interpreter's linker script
Branches
Unknown
Tags
Unknown