]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader.efi: fix panic() after BS off
authorToomas Soome <tsoome@FreeBSD.org>
Wed, 8 Sep 2021 00:14:51 +0000 (03:14 +0300)
committerToomas Soome <tsoome@FreeBSD.org>
Sun, 26 Jun 2022 05:18:13 +0000 (08:18 +0300)
commitc796ba5824d8809f087058d55929b1496f9e52b3
treeace50a5202340b3e795b5e7415eea40dcc8fdd11
parent95e283e4d00ff9419fe47b9ff5a33c4a66bf5246
loader.efi: fix panic() after BS off

panic() is using multiple services - attempting to read
keyboard, accessing time functions and finally, exiting the loader.

Protect all the accessed listed above. Note, when BS are off,
we really can not just exit the loader, we only can reboot.

(cherry-picked from commit a2e02d9d8e100bc41cf99b8fd04738954e48a94e)
stand/efi/include/efiapi.h
stand/efi/libefi/delay.c
stand/efi/libefi/efi_console.c
stand/efi/loader/efi_main.c