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

Platform

Index: 0340 | Size: 263,584 bytes | Arch: x64 | Phase: DXE

Overview

Platform is the central platform initialization DXE driver for the HR650X server, implementing 50 functions that cover low-level CPU, chipset, and memory configuration. It manages cache control, MSR (Model-Specific Register) access, interrupt state, I/O port operations, and memory-copy/zero-fill utilities. The driver includes string manipulation, CPUID feature detection, and platform-specific bring-up sequences.

Key Functions

  • DriverInit / ModuleEntryPoint -- Platform driver entry and dispatch
  • CpuDeadLoop -- Infinite loop for fault/assert conditions
  • DisableInterrupts / EnableInterrupts -- Global interrupt flag management
  • DisableCache -- Cache control for sensitive chipset configuration
  • CpuIdFeatureCheck -- CPU feature detection via CPUID instruction
  • ReadMsr / WriteMsr -- MSR read/write wrappers
  • IoRead32Stall -- MMIO read with stall for PCIe configuration
  • InternalZeroMem / InternalCopyMem / SetMem -- Optimized memory manipulation
  • AsciiStrCpyS -- Safe ASCII string copy
  • GetAndSetSocketIioConfig -- Socket IIO (Integrated IO) module setup

Dependencies

  • UEFI Boot Services / Runtime Services Table Library
  • CPU architectural protocols (MSR, CPUID, cache control)
  • Platform chipset registers (IIO, PCIe root ports)
  • MTRR (Memory Type Range Register) programming

Platform

HR650X, x86-64, PE32+ image, 7 sections (.text, .rdata, .data, .rsrc 163KB), subsystem 0x0B (EFI_BOOT_SERVICE_DRIVER)