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

SmiVariable

  • Index: 0201
  • Size: 9,252 bytes (9.0 KB)
  • Phase: SMM (System Management Mode)
  • PE Format: PE32+ x86-64, 5 sections (.text, .rdata, .data, section_3, .xdata)

Overview

SMM driver for SMI variable management. This driver handles UEFI variable access from SMM context, typically servicing SMI-triggered variable read/write/delete operations. It ensures that variable operations performed during SMM (such as those initiated by SMM communication or by SMM protocol callbacks) are properly serialized and validated. The driver interfaces with the SMM variable storage backend (fault-tolerant write protocol) to protect variable integrity during runtime SMI processing.

Key Functions

  • ModuleEntryPoint -- Standard SMM entry; library init and SMI variable setup
  • sub_4CC -- Early initialization routine
  • sub_788 -- Core SMI variable registration (locates SMM variable protocol, registers handlers)
  • sub_1654 -- Error handler for variable initialization failures

Protocols

  • SmmBase2 Protocol -- SMM entry point
  • SmmVariable Protocol -- Variable access from SMM
  • SmmFtwProtocol -- Fault-tolerant write for variable storage
  • SmmCommunication Protocol -- Communication with DXE variable services

Platform

  • Build: HR6N0XMLK DEBUG_VS2015 X64
  • Source: AmiModulePkg/SmiVariable
  • Part of: HR650X BIOS SMM infrastructure (indices 0195-0199, 0201-0203)