Module pdpt

Module pdpt 

Source
Expand description

§x86-64 Page Directory Pointer Table (PDPT / L3)

This module wraps the third paging level (a.k.a. L3, PDPT):

§Semantics

At the PDPT level, the PS bit controls whether the entry is a 1 GiB leaf (PS=1) or points to a Page Directory (PS=0). Leaf entries map 1 GiB and require 1 GiB physical alignment of the base address. Non-leaf entries hold the physical base of the next-level Page Directory (4 KiB aligned).

§Invariants & Safety Notes

Structs§

L3Index
Index into the PDPT (derived from virtual-address bits [38:30]).
PageDirectoryPointerTable
The PDPT (L3) table: 512 entries, 4 KiB aligned.
Pdpte
L3 PDPTE — pointer to a Page Directory (non-leaf; PS = 0).
Pdpte1G
L3 PDPTE (1 GiB leaf) — maps a single 1 GiB page (PS = 1).

Enums§

L3View
Borrowed view into an L3 PDPTE.
PdptEntryKind
Decoded PDPT entry kind.

Unions§

PdptEntry
L3 PDPTE union — overlays non-leaf Pdpte and leaf Pdpte1G on the same 64-bit storage.