Skip to content

Commit

Permalink
UefiPayloadPkg: Get Vboot flags from VBNV
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Kopeć <[email protected]>
  • Loading branch information
mkopec committed Feb 29, 2024
1 parent cb31522 commit c911e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions UefiPayloadPkg/Include/Library/BlParseLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ ParseTPMPPIInfo (
RETURN_STATUS
EFIAPI
ParseVBootWorkbuf (
OUT UINT32 *Flags,
OUT UINT8 *RecoveryCode,
OUT CONST CHAR8 **RecoveryReason
);
Expand Down
4 changes: 3 additions & 1 deletion UefiPayloadPkg/Library/CbParseLib/CbParseLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,14 +916,15 @@ GetRecoveryReasonString(
RETURN_STATUS
EFIAPI
ParseVBootWorkbuf (
OUT UINT32 *Flags,
OUT UINT8 *RecoveryCode,
OUT CONST CHAR8 **RecoveryReason
)
{
struct cb_cbmem_entry *CbmemEntry;
struct cb_vboot_workbuf_v2 *Workbuf;

if (RecoveryCode == NULL || RecoveryReason == NULL) {
if (Flags == NULL || RecoveryCode == NULL || RecoveryReason == NULL) {
return RETURN_INVALID_PARAMETER;
}

Expand All @@ -944,6 +945,7 @@ ParseVBootWorkbuf (
return RETURN_NOT_FOUND;
}

*Flags = Workbuf->flags;
*RecoveryCode = Workbuf->recovery_reason;
*RecoveryReason = GetRecoveryReasonString(Workbuf->recovery_reason);

Expand Down

0 comments on commit c911e95

Please sign in to comment.