|
@@ -19,7 +19,10 @@
|
|
|
|
|
|
static efi_system_table_t *sys_table;
|
|
|
|
|
|
-struct efi_config *efi_early;
|
|
|
+static struct efi_config *efi_early;
|
|
|
+
|
|
|
+#define efi_call_early(f, ...) \
|
|
|
+ efi_early->call(efi_early->f, __VA_ARGS__);
|
|
|
|
|
|
#define BOOT_SERVICES(bits) \
|
|
|
static void setup_boot_services##bits(struct efi_config *c) \
|
|
@@ -280,6 +283,8 @@ void efi_char16_printk(efi_system_table_t *table, efi_char16_t *str)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+#include "../../../../drivers/firmware/efi/libstub/efi-stub-helper.c"
|
|
|
+
|
|
|
static void find_bits(unsigned long mask, u8 *pos, u8 *size)
|
|
|
{
|
|
|
u8 first, len;
|