mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
efi_loader: enable QueryVariableInfo at runtime for file backed variables
Since commit c28d32f946 ("efi_loader: conditionally enable SetvariableRT")
we are enabling the last bits of missing runtime services.
Add support for QueryVariableInfo which we already support at boottime
and we just need to mark some fucntions available at runtime and move
some checks around.
It's worth noting that pointer checks for maxmimum and remaining
variable storage aren't when we store variables on the RPMB, since the
Secure World backend is already performing them.
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
5025d029a9
commit
9677192c14
@@ -873,6 +873,11 @@ efi_status_t efi_query_variable_info_int(u32 attributes,
|
||||
efi_status_t ret;
|
||||
u8 *comm_buf;
|
||||
|
||||
if (!max_variable_storage_size ||
|
||||
!remain_variable_storage_size ||
|
||||
!max_variable_size || !attributes)
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
||||
payload_size = sizeof(*mm_query_info);
|
||||
comm_buf = setup_mm_hdr((void **)&mm_query_info, payload_size,
|
||||
SMM_VARIABLE_FUNCTION_QUERY_VARIABLE_INFO,
|
||||
|
||||
Reference in New Issue
Block a user