Crate page_attribute_table
source ·Expand description
Support for the Page Attribute Table (PAT) feature on x86.
PAT replaces the legacy Memory Type Range Registers (MTRRs) on x86. PAT allows the system to assign memory types, i.e., specify their caching behavior, to regions of “linear” (virtual) addresses. This is in contrast to MTRRs, which operate on regions of physical addresses.
Structs
- The Page Attribute Table (PAT) consists of 8 “slots” that can each be configured with a different MemoryCachingType.
- An empty error type indicating that the Page Attribute Table is not supported on this machine.
Enums
- The various types of memory caching that x86 supports for usage in the
PageAttributeTable
.
Statics
- Theseus’s fixed
PageAttributeTable
has slots that align with the default meaning of page table entry bits on x86_64.
Functions
- Sets up and enables the Page Attribute Table (PAT) for this (the current) CPU.
- Returns
true
if the Page Attribute Table is supported on this system.