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
  • Loading branch information
apop5 authored Apr 5, 2024
1 parent 1f3a8e1 commit c35b46f
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 c35b46f

Please sign in to comment.