From 4988e683bc275a361204ad53dd95a4d4a7faecaf Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Fri, 14 Nov 2025 10:32:40 +0100 Subject: efi_selftest: expose runtime table address Save the address of the EFI runtime as a global variable. This allows to simplify the setup of tests. Reviewed-by: Ilias Apalodimas Signed-off-by: Heinrich Schuchardt --- include/efi_selftest.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/efi_selftest.h b/include/efi_selftest.h index 1b708849bcb..4ee46cbbb66 100644 --- a/include/efi_selftest.h +++ b/include/efi_selftest.h @@ -19,6 +19,7 @@ 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 -- cgit v1.2.3 From 98838b56cdc6f03207cc2efb93f5de8d1b24974e Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Fri, 14 Nov 2025 10:32:44 +0100 Subject: efi_selftest: simplify efi_st_query_variable_common Use global st_runtime. Signed-off-by: Heinrich Schuchardt --- include/efi_selftest.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/efi_selftest.h b/include/efi_selftest.h index 4ee46cbbb66..874f8b5efe7 100644 --- a/include/efi_selftest.h +++ b/include/efi_selftest.h @@ -151,13 +151,11 @@ u16 efi_st_get_key(void); /** * efi_st_query_variable_common - Common variable tests for boottime/runtime * - * @runtime: Pointer to services table * @attributes: Attributes used * * Return: EFI_ST_SUCCESS/FAILURE */ -int efi_st_query_variable_common(struct efi_runtime_services *runtime, - u32 attributes); +int efi_st_query_variable_common(u32 attributes); /** * struct efi_unit_test - EFI unit test -- cgit v1.2.3