extern const struct efi_system_table *st_systable;
extern const struct efi_boot_services *st_boottime;
+extern const struct efi_runtime_services *st_runtime;
/**
* efi_st_printf() - print a message
const struct efi_system_table *st_systable;
const struct efi_boot_services *st_boottime;
-static const struct efi_runtime_services *runtime;
+const struct efi_runtime_services *st_runtime;
static efi_handle_t handle;
static u16 reset_message[] = u"Selftest completed";
static int *setup_status;
st_systable = systab;
st_boottime = st_systable->boottime;
- runtime = st_systable->runtime;
+ st_runtime = st_systable->runtime;
handle = image_handle;
con_out = st_systable->con_out;
con_in = st_systable->con_in;
efi_st_get_key();
if (IS_ENABLED(CONFIG_EFI_HAVE_RUNTIME_RESET)) {
- runtime->reset_system(EFI_RESET_WARM, EFI_NOT_READY,
- sizeof(reset_message), reset_message);
+ st_runtime->reset_system(EFI_RESET_WARM, EFI_NOT_READY,
+ sizeof(reset_message), reset_message);
} else {
efi_restore_gd();
do_reset(NULL, 0, 0, NULL);