# WheaErrorInj

| Index | Module | Size | Phase |
|-------|--------|------|-------|
| 0228 | WheaErrorInj | 169,984 bytes (166.0 KB) | DXE |

## Overview

WHEA (Windows Hardware Error Architecture) Error Injection DXE Driver. Provides platform-level error injection capabilities for WHEA-compatible OS error handlers during DXE phase. Contains a large .data section (~135 KB likely containing WHEA control structures and injection tables) with 1 exported function. The driver registers WHEA error injection interfaces that allow the OS to inject hardware errors for validation and testing of the platform error handling path.

## Key Functions

- **ModuleEntryPoint** (0x540): Standard UEFI driver entry point; calls sub_57C for initialization, sub_A14 for main registration logic, and sub_4564 for cleanup on failure.

## Dependencies

- **Platform WHEA infrastructure**: WHEA error source and error injection protocol interfaces
- **UEFI Boot Services**: Protocol installation, event, and memory services
- **Related modules**: WheaElog, WheaErrorLog, WheaSupport, McBankErrorInjection

## Platform

Intel Purley (HR650X server platform), x86-64, PE32+ format, 5 sections (.text, .rdata, .data, section_3, .xdata)