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

CRBPei

Field Value
Index 398
Module CRBPei
Size 4,324 bytes (10E4h)
Phase PEI
SHA256 fae8a7c9ffec6d007252958c47515c4c4b949f3af1cfe24f5a8582bd09c2bc59
Functions 31

Overview

CRBPei (Crash Record Buffer PEI) is a PEI driver from AmiCRBPkg that initializes PCI Express base address detection via configuration cycles, updates the PcdPciExpressBaseAddress PCD, locates the IIO UDS (Unified Data Structure) HOB to populate the PCIe segment/bus table, and publishes microcode patch address/size information. It ensures the PCIe configuration space is accessible for subsequent PEIMs and DXE drivers.

Key Functions

  • ModuleEntryPoint -- Main entry; detects PCIe base address, publishes PCD and HOB data
  • PCI Express base address detection via CF8/CFC configuration cycles
  • IIO UDS HOB parsing for segment/bus number topology
  • Microcode patch region detection and HOB publication
  • Memset, Memset32, Memmove (internal memory utilities)

Dependencies

  • PiPei, Uefi base libraries
  • PcdLib for PcdPciExpressBaseAddress updates
  • HobLib for IIO UDS HOB traversal and creation
  • PeiServicesLib, PeiServicesTablePointerLib
  • IoLib for PCI configuration cycle access

Platform

  • Architecture: IA-32 (x86)
  • Subsystem: EFI_BOOT_SERVICE_DRIVER (0x0B)
  • Source: AmiCRBPkg/CRB/CRBPEI.c
  • Linker: MSVS 2015