# HwpLvtSmm

## Index
0180

## Size
1B24h (6,948 bytes)

## Phase
DXE SMM (System Management Mode driver)

## Source Package
PurleySktPkg/Smm/PowerManagement/HwpLvtSmm

## Overview
HwpLvtSmm is an SMM driver that manages Hardware P-state (HWP) Local Vector Table (LVT) settings on Intel Purley platform SKT processors. It initializes and configures MSR-based LVT entries related to HWP, ensuring correct interrupt routing for power management events within System Management Mode.

## Key Functions
- **ModuleEntryPoint** (0x464): Entry point; initializes the SMM driver, performs HWP LVT configuration, and registers SMI handlers as needed.
- **sub_510**: Performs platform-specific HWP Local Vector Table initialization, programming MSR registers for power management interrupt delivery.
- **sub_A00**: Main configuration subroutine that sets up the HWP LVT entries based on platform policies.
- **sub_280 / sub_320**: SMM library initialization and cleanup routines (SMM base library protocol management).
- **sub_CD8 / sub_D8C**: Debug assertion and error handling routines used for status validation.

## Strings
- Build path: `PurleySktPkg\Smm\PowerManagement\HwpLvtSmm`
- ASSERT_EFI_ERROR status validation messages
- AutoGen.c debug assertions (lines 345, 360)

## Platform
Intel Purley (HR650X server platform)