]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: Add loader.exit
authorWarner Losh <imp@FreeBSD.org>
Tue, 27 Feb 2024 03:19:58 +0000 (20:19 -0700)
committerWarner Losh <imp@FreeBSD.org>
Tue, 27 Feb 2024 03:49:46 +0000 (20:49 -0700)
commit9398a495eb305d5bf240bc998ee2f6128d75f4ca
tree4ce977c384e7289e13d4e160a4749efa9243fb60
parent8bfb23abf882afdca0a0530ef1231ac59963bc4a
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
stand/liblua/lutils.c
stand/lua/loader.lua.8