Skip to content

Commit

Permalink
DxeTcgPhysicalPresenceLib: Pause before reboot so user can read msg
Browse files Browse the repository at this point in the history
Signed-off-by: Matt DeVillier <[email protected]>
Change-Id: I8a8cb1d81c430eac02ce0a590934126593652361
  • Loading branch information
MrChromebox committed Aug 7, 2024
1 parent debc199 commit 6b389b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include <Library/DxeServicesTableLib.h>
#include <IndustryStandard/TcgPhysicalPresence.h>
#include <Library/HobLib.h>
#include <Library/TimerLib.h>

#define CONFIRM_BUFFER_SIZE 4096

Expand Down Expand Up @@ -1368,10 +1369,14 @@ ExecutePendingTpmRequest (
return;
}

Print (L"\n\nRebooting system to apply changes to TPM settings\n");

Flush_PPI_Cache12(TRUE); //Need to Flush cache to RAM otherwise mPpi are not stored in RAM.


if (RequestConfirmed) {
Print (L"\n\nRebooting system to apply changes to TPM settings\n");
// Pause so user see that is the system is about to reboot
MicroSecondDelay(3000*1000);
}

gRT->ResetSystem (EfiResetCold, EFI_SUCCESS, 0, NULL);
ASSERT (FALSE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
DebugLib
PrintLib
HiiLib
TimerLib
Tcg2PhysicalPresencePlatformLib

[Protocols]
Expand Down

0 comments on commit 6b389b6

Please sign in to comment.