x86/efistub: Don't try to print after ExitBootService()
authorNikolay Borisov <nik.borisov@suse.com>
Wed, 11 Oct 2023 19:25:28 +0000 (22:25 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 13 Oct 2023 10:19:37 +0000 (12:19 +0200)
commitff07186b4d774ac22a5345d30763045af4569416
tree50a4ab1f4aca6b678c1541e4b3e591510540324b
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
x86/efistub: Don't try to print after ExitBootService()

setup_e820() is executed after UEFI's ExitBootService has been called.
This causes the firmware to throw an exception because the Console IO
protocol is supposed to work only during boot service environment. As
per UEFI 2.9, section 12.1:

 "This protocol is used to handle input and output of text-based
 information intended for the system user during the operation of code
 in the boot services environment."

So drop the diagnostic warning from this function. We might add back a
warning that is issued later when initializing the kernel itself.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/x86-stub.c