Skip to content

Commit

Permalink
UefiPayloadPkg: Check for CFR RUNTIME option flag
Browse files Browse the repository at this point in the history
Use the CFR RUNTIME option flag to set the EFI_VARIABLE_RUNTIME_ACCESS
flag.

Signed-off-by: Filip Brozovic <[email protected]>
  • Loading branch information
fbrozovic committed Jan 15, 2025
1 parent 4930619 commit 094b725
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UefiPayloadPkg/CfrSetupMenuDxe/SetupMenuCfr.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ CfrProduceStorageForOption (
if (!(OptionFlags & CFR_OPTFLAG_VOLATILE)) {
VariableAttributes |= EFI_VARIABLE_NON_VOLATILE;
}
if (OptionFlags & CFR_OPTFLAG_RUNTIME) {
VariableAttributes |= EFI_VARIABLE_RUNTIME_ACCESS;
}

DataSize = 0;
Status = gRT->GetVariable (
Expand Down

0 comments on commit 094b725

Please sign in to comment.