44 UINT32 TopOfTemporaryRam;
46 VOID *TopOfTemporaryRamPpi;
49 DEBUG ((DEBUG_INFO,
"SecGetPerformance\n"));
51 Status = (*PeiServices)->LocatePpi (
53 &gTopOfTemporaryRamPpiGuid,
56 (VOID **)&TopOfTemporaryRamPpi
58 if (EFI_ERROR (Status)) {
75 TopOfTemporaryRam = (UINT32)(
UINTN)TopOfTemporaryRamPpi -
sizeof (UINT32);
76 TopOfTemporaryRam -=
sizeof (UINT32) * 2;
77 Count = *(UINT32 *)(
UINTN)(TopOfTemporaryRam -
sizeof (UINT32));
78 Size = Count *
sizeof (UINT64);
80 Ticker = *(UINT64 *)(
UINTN)(TopOfTemporaryRam -
sizeof (UINT32) - Size -
sizeof (UINT32) * 2);
UINT64 EFIAPI GetTimeInNanoSecond(IN UINT64 Ticks)
#define DEBUG(Expression)