# CmosPei

| Index | Module | Size | Phase |
|-------|--------|------|-------|
| 0416 | CmosPei.efi | 0x32E0 (13024 bytes) | PEI |

## Overview

This PEIM provides CMOS (Real-Time Clock/NVRAM) access services during the PEI phase. It implements read/write operations to CMOS I/O ports (0x70/0x71) for accessing RTC registers and CMOS NVRAM storage. The module likely installs a CMOS access PPI for other PEI modules to consume, enabling early platform configuration reads before DXE.

## Key Functions

- CMOS read/write via standard RTC I/O ports (0x70/0x71, 0x72/0x73)
- CMOS NVRAM offset access for platform configuration
- `SetMem` / `CopyMem` / `SetMem32` / `SetMemN` / `SetMem16` -- Memory utility functions

## Dependencies

- CmosPei.h (module header)
- PEI Services
- CMOS/RTC I/O port interface

## Platform

- Architecture: IA32 (32-bit)
- Machine type: x86 (0x014C)
- Subsystem: EFI Boot Service Driver (0x000B)
- Format: PE32
- Image base: 0xFFE63F9C
- Sections: .text (9KB), .rdata, .data, .reloc