Skip to content

Commit

Permalink
When recovering Pei buffer from hob list, need to fix internal pointe…
Browse files Browse the repository at this point in the history
…rs to log and next available log space.
  • Loading branch information
apop5 committed Apr 5, 2024
1 parent 1f3a8e1 commit 5fbb5a9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ AdvancedLoggerGetLoggerInfo (
(PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices))->PlatformBlob = PA_FROM_PTR (LoggerInfo);
LogPtr->LogBuffer = PA_FROM_PTR (LoggerInfo);

LoggerInfo->LogCurrent = PA_FROM_PTR (LoggerInfo + 1) + LoggerInfo->LogCurrent - LoggerInfo->LogBuffer;
LoggerInfo->LogBuffer = PA_FROM_PTR (LoggerInfo + 1);

// return the pointer
return LoggerInfo;
}
Expand Down

0 comments on commit 5fbb5a9

Please sign in to comment.