dm: core: Create a new header file for 'compat' features
[oweals/u-boot.git] / lib / efi / efi_stub.c
index 1b495ec81b296601794be376f842522c945bd572..7d650d512e30b142b0869adb5c3fd0e81cab496f 100644 (file)
@@ -14,6 +14,7 @@
 #include <efi.h>
 #include <efi_api.h>
 #include <errno.h>
+#include <malloc.h>
 #include <ns16550.h>
 #include <asm/cpu.h>
 #include <asm/io.h>
@@ -277,7 +278,8 @@ efi_status_t EFIAPI efi_main(efi_handle_t image,
        struct efi_entry_memmap map;
        struct efi_gop *gop;
        struct efi_entry_gopmode mode;
-       efi_guid_t efi_gop_guid = EFI_GOP_GUID;
+       struct efi_entry_systable table;
+       efi_guid_t efi_gop_guid = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;
        efi_uintn_t key, desc_size, size;
        efi_status_t ret;
        u32 version;
@@ -335,6 +337,9 @@ efi_status_t EFIAPI efi_main(efi_handle_t image,
                return ret;
        }
 
+       table.sys_table = (ulong)sys_table;
+       add_entry_addr(priv, EFIET_SYS_TABLE, &table, sizeof(table), NULL, 0);
+
        ret = boot->exit_boot_services(image, key);
        if (ret) {
                /*