Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / SouthClusterLbg / Gpio / Smm / PchGpioUnlockSmm / README.md
@Ajax Dong Ajax Dong 2 days ago 1 KB Full restructure

PchGpioUnlockSmm

Field Value
Index 240
Module PchGpioUnlockSmm
Size 10,400 bytes
Phase SMM

Overview

PchGpioUnlockSmm is an SMM module responsible for unlocking PCH (Platform Controller Hub) GPIO (General Purpose Input/Output) pad configurations during the boot process. It manages GPIO lock registers to allow firmware and OS kernel to reconfigure GPIO pads, handling the delicate balance between system security (locked GPIO prevents physical tamper attacks) and hardware configuration flexibility. The module runs in SMM context and releases GPIO locks after validating requested configuration changes.

Key Functions

  • ModuleEntryPoint: Entry point that initializes GPIO unlock logic and SMM handler registration.
  • sub_48C: Initialization and GPIO policy preparation.
  • sub_75C: Core GPIO unlock processing, applying unlock sequences to PCH GPIO controllers.
  • sub_11D0: Error handling and cleanup path for failed GPIO unlock operations.

Dependencies

  • UEFI system table and boot services
  • SMM base protocol
  • PCH GPIO controller registers (GPIO_LOCK/GPIOSMIEN)
  • GPIO configuration protocol (SMM)
  • SMM communication protocol

Platform

HR650X server platform, x64 architecture. Runs in SMM context for secure GPIO lock management.