# TcgSmm

| Field   | Value                    |
|---------|--------------------------|
| Index   | 235                      |
| Module  | TcgSmm                   |
| Size    | 9,792 bytes              |
| Phase   | SMM                      |

## Overview

TcgSmm is the SMM (System Management Mode) component of the TCG (Trusted Computing Group) subsystem. It provides SMM-based trusted computing services, including TPM command processing from within SMM and SMI-triggered TCG event log management. This module runs in the SMM phase and handles TPM interactions that require system-management privilege.

## Key Functions

- **ModuleEntryPoint**: Entry point that initializes the module and dispatches TCG SMM services.
- **SmiHandlerRegistrationAndProtocolInstall**: SMI handler registration and TCG protocol installation.
- **TpmCommandAndEventProcessing**: Core TPM command processing and TCG event management.
- **TcgErrorCleanup**: Error handling and cleanup for failed TCG operations.

## Dependencies

- UEFI system table and boot services
- SMM base protocol and SMI dispatch
- TPM hardware interface (LPC/SPI TPM)
- SMM communication protocol for DXE-to-SMM TCG commands
- TCG/TPM EFI protocols and PPIs

## Platform

HR650X server platform, x64 architecture. Runs in SMM context with system-management privilege for trusted computing operations.
