Newer
Older
AMI-Aptio-BIOS-Reversed / WheaPlatformBoot / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Init

WheaPlatformBoot

Index: 0206
Size: 13,092 bytes (3324h)
Phase: DXE (driver)
Source Package: CpPlatPkg\Whea\WheaPlatformBoot\WheaPlatformBoot

Overview

Windows Hardware Error Architecture (WHEA) platform boot-time initialization driver. Configures WHEA platform-specific settings during the DXE boot phase, setting up error source discovery and platform error handling policies. Works alongside WheaElog to provide complete WHEA error logging infrastructure for the Purley platform. Includes error recovery logic -- on failure, calls sub_CF4 to handle cleanup before returning the error status.

Key Functions

  • ModuleEntryPoint -- Main entry: calls sub_510 init, then sub_904 for WHEA platform boot setup
  • sub_510 -- UEFI driver init: caches ImageHandle, SystemTable, BootServices, RuntimeServices
  • sub_904 -- Core WHEA platform boot initialization: platform-specific error source configuration
  • sub_AB0 / sub_320 -- WHEA platform event notification cleanup/teardown callbacks
  • sub_280 -- Error-checking hook for initialization validation
  • sub_CF4 -- Error path cleanup handler called when initialization fails

Protocols

  • WHEA platform-specific protocol interfaces
  • EFI_STATUS_CODE_RUNTIME_PROTOCOL for error event reporting
  • ACPI/ERST interfaces for persistent error record storage

Platform

HR650X (Purley), built from CpPlatPkg, DEBUG VS2015 X64