Collaboration diagram for Control Registers:
CR0 contains system control flags that control operating mode and states of the processor. The CR0 flags include the following.
CR1 is reserved.
CR2 contains the page fault liner address (the linear address that caused a page fault).
CR3 contains the physical address of the base of the page directory and two flags, PCD and PWT, which control caching of the page directory in the processor's internal data caches.
CR4 contains a group of flags that enable certain architectural extensions. The CR4 flags include the following.
Functions | |
static u32 | Zygoma::getCR2 () |
Gets the contents of Control Register 2. | |
static void | Zygoma::setCR3 (u32 pagedir) |
Sets the contents of Control Register 3. | |
static u32 | Zygoma::getCR3 () |
Gets the contents of Control Register 3. |
|
Gets the contents of Control Register 2. CR2 holds the location of the last page fault. |
|
Gets the contents of Control Register 3. CR3 holds the base address of a Page Directory. It is also known as the Page Directory Base Register (PDBR). |
|
Sets the contents of Control Register 3. CR3 holds the base address of a Page Directory. It is also known as the Page Directory Base Register (PDBR). |