Expand description

Description of the data-structures for IA-32 paging mode.

Structs

A wrapper for an IO address (IOVA / DMA Address for devices)

A type wrapping a large page with a 4 MiB buffer.

A wrapper for a physical address.

A PD Entry consists of an address and a bunch of flags.

PD configuration bits description.

A PT Entry consists of an address and a bunch of flags.

PT Entry bits description.

A type wrapping a base page with a 4 KiB buffer.

A wrapper for a virtual address.

Constants

Log2 of base page size (12 bits).

Size of a base page (4 KiB)

Size of a cache-line

Size of a large page (4 MiB)

Page tables have 512 = 4096 / 32 entries.

Functions

Given virtual address calculate corresponding entry in PD.

Given virtual address calculate corresponding entry in PT.

Type Definitions

A page directory.

A page table.