]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: populate console handles in system table
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 4 Jan 2023 04:56:09 +0000 (05:56 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 4 Jan 2023 12:17:42 +0000 (13:17 +0100)
The fields ConsoleInHandle, ConsoleOutHandle, ConsoleErrHandle must point
to the handles with the respective console protocols. Failure to do so
leads to an error in the EFI Shell:

    No SimpleTextInputEx was found. CTRL-based features are not usable.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_boottime.c

index 253f9f75ef63b53aae7f8ec2356e230e15c1313e..e65ca6a4cbee9dec07176d9cc73a4a0819bde4a3 100644 (file)
@@ -3956,8 +3956,11 @@ efi_status_t efi_initialize_system_table(void)
         * These entries will be set to NULL in ExitBootServices(). To avoid
         * relocation in SetVirtualAddressMap(), set them dynamically.
         */
+       systab.con_in_handle = efi_root;
        systab.con_in = &efi_con_in;
+       systab.con_out_handle = efi_root;
        systab.con_out = &efi_con_out;
+       systab.stderr_handle = efi_root;
        systab.std_err = &efi_con_out;
        systab.boottime = &efi_boot_services;