efi_loader: ResetSystem() should not hang
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 22 Aug 2020 06:29:53 +0000 (08:29 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 24 Aug 2020 14:37:53 +0000 (16:37 +0200)
commitf03a879d67261b587a88e8e475596c1bbe7e6111
tree992c723722e3c10414612bcc49dd5f1d580c9fdd
parentebcbfc7d6de20b094090da3aa3b944cfd8103baa
efi_loader: ResetSystem() should not hang

If ResetSystem() is not implemented at runtime, it should return instead
of hanging in an endless loop. This allows the operating system to reset
the system by other means as Linux does. It also matches what EDK II
suggests in comments for functions ResetShutdown() and ResetWarm() in
OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_runtime.c