[PATCH v2 5/8] sandbox: implement reset

Rasmus Villemoes rasmus.villemoes at prevas.dk
Tue Oct 27 20:10:44 CET 2020


On 27/10/2020 19.47, Heinrich Schuchardt wrote:
> Up to now the sandbox would shutdown upon a cold reset request. Instead it
> should be reset.
> 
> In our coding we use static variables like LIST_HEAD(efi_obj_list). A reset
> can occur at any time, e.g. via an UEFI binary calling the reset service.
> The only safe way to return to an initial state is to relaunch the U-Boot
> binary.
> 
> The reset implementation uses a longjmp() to return to the main() function
> and then relaunches U-Boot using execv().
> 

Thanks for the updated version. Please remember to update the commit log
accordingly.

Rasmus


More information about the U-Boot mailing list