Expand description
Description of the data-structures for IA-32 paging mode.
Structs§
- IOAddr
- A wrapper for an IO address (IOVA / DMA Address for devices)
- Large
Page - A type wrapping a large page with a 4 MiB buffer.
- PAddr
- A wrapper for a physical address.
- PDEntry
- A PD Entry consists of an address and a bunch of flags.
- PDFlags
- PD configuration bits description.
- PTEntry
- A PT Entry consists of an address and a bunch of flags.
- PTFlags
- PT Entry bits description.
- Page
- A type wrapping a base page with a 4 KiB buffer.
- VAddr
- A wrapper for a virtual address.
Constants§
- BASE_
PAGE_ SHIFT - Log2 of base page size (12 bits).
- BASE_
PAGE_ SIZE - Size of a base page (4 KiB)
- CACHE_
LINE_ SIZE - Size of a cache-line
- LARGE_
PAGE_ SIZE - Size of a large page (4 MiB)
- PAGE_
SIZE_ ENTRIES - Page tables have 512 = 4096 / 32 entries.
Functions§
- pd_
index - Given virtual address calculate corresponding entry in PD.
- pt_
index - Given virtual address calculate corresponding entry in PT.