Newer
Older
AMI-Aptio-BIOS-Reversed / AmiModulePkg / Flash / SmiFlash / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Full restructure

SmiFlash

Field Value
Index 233
Module SmiFlash
Size 34,304 bytes
Phase Other (DXE/SMM utility)

Overview

SmiFlash is a UEFI module responsible for SMM (System Management Mode) flash programming operations. It provides the infrastructure to program and erase flash regions from within SMI context, enabling secure firmware update flows that require SMM privilege. The module registers SMI handlers and exposes interfaces for flash manipulation under SMM protection.

Key Functions

  • ModuleEntryPoint: Entry point that initializes the module, registers SMI flash handlers, and sets up communication channels for flash programming requests.
  • sub_53C: Early initialization and SMI handler registration.
  • sub_968: Core dispatch logic for processing flash programming commands.
  • sub_2288: Error handling and cleanup path for failed flash operations.

Dependencies

  • UEFI system table and boot services
  • SMM base protocol
  • Flash controller registers (SPI / BIOS flash)
  • SMI dispatch protocol

Platform

HR650X server platform, x64 architecture. Runs in SMM context with system-management privileges for direct flash hardware access.