Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Control Registers
[Intel IA32 (32-bit) Architecture]

Collaboration diagram for Control Registers:


Detailed Description

The ia32 CPU architecture includes 5 "control registers" as follows.

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.


Function Documentation

static u32 Zygoma::getCR2  )  [inline, static]
 

Gets the contents of Control Register 2.

CR2 holds the location of the last page fault.

static u32 Zygoma::getCR3  )  [inline, static]
 

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).

static void Zygoma::setCR3 u32  pagedir  )  [inline, static]
 

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).


Generated on Fri Sep 2 10:45:03 2005 for zygoma by doxygen 1.4.2