| 5e850907 | 27-Feb-2024 |
Warner Losh <[email protected]> |
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
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)
show more ...
|
| 67d21468 | 21-Feb-2024 |
Warner Losh <[email protected]> |
loader: For the mini-stdio we have for lua, #define them to something else
To make it easier to port lua and some of the lua modules, we have a series of routines to implement the stdio routines, ev
loader: For the mini-stdio we have for lua, #define them to something else
To make it easier to port lua and some of the lua modules, we have a series of routines to implement the stdio routines, even though we don't normally implement them in the boot loader. Add a comment to this effect.
Also, some tools, like sanitizers and static analysis tools, make unwarranted assumptions about these, so #define them to a different name so they stop.
Sponsored by: Netflix
(cherry picked from commit 9a5aaa97cbae024f90bb626f78c3dbde28653c58)
show more ...
|
| ab3aa90b | 16-Feb-2024 |
Warner Losh <[email protected]> |
loader: Add prototype for gfx_interp_md
This function will be used to draw in the graphics bindings when the loader is compiled with graphics (gfx) support. Provide definitions for lua and the simpl
loader: Add prototype for gfx_interp_md
This function will be used to draw in the graphics bindings when the loader is compiled with graphics (gfx) support. Provide definitions for lua and the simple interpreter. 4th support is forthcoming.
Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43903
(cherry picked from commit 60e199d9fde1c3c60a96b969bf6982278cbc1e88)
show more ...
|
| 73fac51c | 16-Feb-2024 |
Warner Losh <[email protected]> |
loader: Create new gfx table
Create a new gfx global table. Put into it all the graphics bindings that we have in loader today. For now, have compatability binding for loader. Remove them from loade
loader: Create new gfx table
Create a new gfx global table. Put into it all the graphics bindings that we have in loader today. For now, have compatability binding for loader. Remove them from loader.
Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43902
(cherry picked from commit 9b16231032ddb40be282d76ec0d82b3a0ec96d60)
show more ...
|
| 8929f845 | 16-Feb-2024 |
Warner Losh <[email protected]> |
loader: Separate gfx to a new file.
Move gfx lua hook registration to a new file.
Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43901
(cherry
loader: Separate gfx to a new file.
Move gfx lua hook registration to a new file.
Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43901
(cherry picked from commit 061b68a76030f4147f5a30e60ab5f4296c1376b7)
show more ...
|
| 5bbe8ec0 | 16-Feb-2024 |
Warner Losh <[email protected]> |
loader: Register the gfx stuff separately.
Move registration of the gfx stuff to separate function. However, no change in functionality is intended.
Sponsored by: Netflix Reviewed by: kevans, jhb
loader: Register the gfx stuff separately.
Move registration of the gfx stuff to separate function. However, no change in functionality is intended.
Sponsored by: Netflix Reviewed by: kevans, jhb Differential Revision: https://reviews.freebsd.org/D43900
(cherry picked from commit 1dac5a34b64e2573236f38b23f8b1f92bd6a1d7c)
show more ...
|
| c5465397 | 16-Feb-2024 |
Warner Losh <[email protected]> |
loader: Simplify the loader.has_command
luaL_checkstring already checks for the right number of arguments. There's no need to do that by hand here. Now an exception will be thrown like any other fun
loader: Simplify the loader.has_command
luaL_checkstring already checks for the right number of arguments. There's no need to do that by hand here. Now an exception will be thrown like any other function with the wrong args. Also, push a boolean instead of an int.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D43820
(cherry picked from commit 7fc95c31f007ef01c53aa5f9d8802e9579f408ee)
show more ...
|