# TcgDxe

| Index | Module | Size | Phase |
|-------|--------|------|-------|
| 270 | TcgDxe | 27 KB (28036 bytes) | DXE |

## Overview

TcgDxe is a UEFI DXE driver implementing the Trusted Computing Group (TCG) protocol interface. It provides TPM (Trusted Platform Module) hardware initialization, memory comparison utilities, and platform-specific CPU control functions for managing trusted boot measurements.

The module includes 21 functions total, covering low-level CPU intrinsics (pause, RDTSC, enable/disable interrupts), memory operations (CompareMemInternal), TPM initialization (TpmInitHardware), and the standard UEFI module entry point.

## Key Functions

- ModuleEntryPoint -- Standard UEFI DXE entry point
- TpmInitHardware -- TPM hardware initialization routine
- CompareMemInternal -- Constant-time memory comparison
- InternalCopyMem, InternalSetMem -- Memory copy and set utilities
- _enable_w, _disable_w -- CPU interrupt enable/disable wrappers
- __rdtsc_w -- RDTSC instruction wrapper for timestamp

## Dependencies

- UEFI Boot Services, Runtime Services
- TCG/TPM protocols
- UEFI Specification v2.x

## Platform

Lenovo HR650X (x86_64, PE32+)