# DdrtErrorHandler
**Index:** 0221 | **Size:** 74,580 bytes (298,432 body) | **Phase:** SMM

## Overview
SMM DDRT (Double Data Rate Training) error handler for the Intel Purley platform. Handles memory training-related RAS errors, managing DDR memory channel error events during system runtime. The module initializes through AutoGen library constructors, then performs main initialization to register SMM error handling callbacks for DDR training and memory channel error monitoring.

## Key Functions
- **ModuleEntryPoint** -- SMM entry point: calls init constructors then main error handler registration
- **sub_59C** -- AutoGen library constructor chain initialization
- **sub_8D0** -- Main initialization: protocol location and SMI handler registration
- **sub_49CC** -- Fallback/cleanup handler called on initialization failure

## Protocols/Dependencies
- UEFI Boot Services (gBS), Runtime Services (gRT), SMM System Table (gSmst)
- SMM SW Dispatch2 Protocol for SMI handler registration
- MP Sync Data protocols for multi-processor coordination

## Platform
Intel Purley (Skylake-SP Xeon), HR650X
Source: PurleyPlatPkg/Ras/Smm/ErrHandling/DdrtErrorHandler/