| Property | Value |
|---|---|
| Module | TcgPlatformSetupPeiPolicy.efi |
| SHA256 | 64cbe3c32de56eb053c18852403ae222b05e6d5ef7bca75b61b199ab1a0de990 |
| Arch | 32-bit IA32 |
| Base | 0xffe17774 |
| Size | 0x83a0 (33696 bytes) |
| IDA Port | 13376 |
Original source path: e:\hs\AmiModulePkg\TCG2\Common\TcgPlatformSetupPeiPolicy\TcgPlatformSetupPeiPolicy.c
This PEIM installs a TCG Platform Setup Policy PPI to configure TPM-related setup policy during PEI phase.
| # | Address | Name | Size | Calls | Callers | BBs |
|---|---|---|---|---|---|---|
| 1 | 0xffe179d4 | CompareMem | 29 | 0 | 1 | 1 |
| 2 | 0xffe179f4 | SetMem | 21 | 0 | 0 | 1 |
| 3 | 0xffe17a14 | CopyMemBackwards | 31 | 1 | 0 | 3 |
| 4 | 0xffe17a34 | SetMem32 | 21 | 0 | 0 | 1 |
| 5 | 0xffe17a54 | CopyMem | 63 | 1 | 0 | 5 |
| 6 | 0xffe17ab4 | TcgPlatformSetupPolicyEntry | 697 | 4 | 0 | 20 |
| 7 | 0xffe17d6d | CompareMemWithDebug | 152 | 3 | 1 | 13 |
| 8 | 0xffe17e05 | GetDebugOutputInterface | 49 | 2 | 4 | 4 |
| 9 | 0xffe17e36 | DebugPrint | 42 | 3 | 1 | 4 |
| 10 | 0xffe17e60 | DebugOutputString | 30 | 2 | 2 | 3 |
| 11 | 0xffe17e7e | GetTpmState | 79 | 1 | 1 | 7 |
| 12 | 0xffe17ecd | GetPeiServicesTablePointer | 50 | 3 | 1 | 3 |
| 13 | 0xffe17eff | ReadIdtr | 35 | 2 | 1 | 3 |
These are internal implementations of BaseMemoryLib (linked statically).
These provide ASSERT and debug print support.
GetPeiServicesTablePointer reads the IDTR to locate the PEI Services Table. ReadIdtr wraps __sidt().
GetTpmState reads CMOS register 0x4A via I/O ports 0x70/0x71 to determine TPM state. Returns:
The entry point:
SystemTable->BootServices->InstallConfigurationTable (offset +24)TcgPlatformSetupPolicyEntry
-- GetDebugOutputInterface
|-- GetPeiServicesTablePointer
| |-- ReadIdtr
-- DebugPrint
|-- GetDebugOutputInterface
|-- GetTpmState
-- DebugOutputString
|-- GetDebugOutputInterface
-- CompareMemWithDebug
-- CompareMem
-- GetDebugOutputInterface
e:\hs\AmiModulePkg\TCG2\Common\TcgPlatformSetupPeiPolicy\TcgPlatformSetupPeiPolicy.c (debug path)!EFI_ERROR (Status) (assert expression at line 213)\nASSERT_EFI_ERROR (Status = %%r)\n (debug print format)__sidt)bad sp value warning from decompiler due to stack frame manipulation (negative offsets)