Commit graph

3 commits

Author SHA1 Message Date
Warner Losh
5e85090731 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)
2024-04-16 13:54:28 -06:00
Warner Losh
32c08f4925 loader: Move gfx functions to gfx.lua.8
Now that the fb_* and term_* functions are available in the gfx table,
move the documentation to gfx.lua.8. Add information about backwards
compatibility.

Sponsored by:		Netflix
Reviewed by:		kevans
Differential Revision:	https://reviews.freebsd.org/D43907

(cherry picked from commit a8f8c53761c4b0436c9d546ebe046003f1b3d88f)
2024-04-16 13:54:24 -06:00
Warner Losh
cfe4f061a7 loader: Document the lua loader table.
Document all the public functions from the "loader" table.

Sponsored by:		Netflix
Reviewed by:		pauamma_gundo.com, tsoome, kevans
Differential Revision:	https://reviews.freebsd.org/D43701

(cherry picked from commit 621dae89f3c70b86bef255a621a76bf553f733ff)
2024-04-16 13:54:22 -06:00