AMI-Aptio-BIOS-Reversed / CpPlatPkg / Whea / WheaErrorInj /
@Ajax Dong Ajax Dong authored 7 days ago
..
README.md Recovering names 7 days ago
WheaErrorInj.c Recovering names 7 days ago
WheaErrorInj.h Recovering names 7 days ago
WheaErrorInj.md Recovering names 7 days ago
README.md

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 InitializeWheaErrorInjection for initialization, RegisterWheaErrorInjection for main registration logic, and UnregisterWheaErrorInjection on failure.
  • InitializeWheaErrorInjection (0x57C): Early module setup.
  • RegisterWheaErrorInjection (0xA14): Main registration/init routine.
  • UnregisterWheaErrorInjection (0x4564): Cleanup/uninstall routine when registration fails.

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)