add ability to dump smc

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2020-07-14 10:51:12 +03:00
parent 830c0c41fe
commit 38106e53a7
2 changed files with 5 additions and 3 deletions

View File

@ -495,7 +495,7 @@ GetSmcKeys (BOOLEAN WriteToSMC)
}
FreePool(Name);
}
/*
#if CHECK_SMC
VOID DumpSmcKeys()
{
if (!gAppleSmc || !gAppleSmc->DumpData) {
@ -503,7 +503,7 @@ VOID DumpSmcKeys()
}
gAppleSmc->DumpData(gAppleSmc);
}
*/
#endif
/** Searches for GPT HDD dev path node and return pointer to partition GUID or NULL. */
EFI_GUID

View File

@ -81,7 +81,9 @@ PutNvramPlistToRtVars (VOID);
VOID
GetSmcKeys(BOOLEAN WriteToSMC);
#if CHECK_SMC
VOID DumpSmcKeys();
#endif
EFI_STATUS
SetStartupDiskVolume (