Skip to content
Hirochika Asai edited this page May 8, 2015 · 1 revision

Control Registers

CR0

31                            16 15                6 5         0
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|P|C|N|                   |A| |W|                   |N|E|T|E|M|P|
|G|D|W|                   |M| |P|                   |E|T|S|M|P|E|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  • PE: Protection Enable
  • MP: Monitor Coprocessor
  • EM: Emulation
  • TS: Task Switched
  • ET: Extension Type
  • NE: Numeric Error
  • WP: Write Protect
  • AM: Alignment Mask
  • NW: Not Write-through
  • CD: Cache Disable
  • PG: Paging

CR4

31                    20      16 15            8 7             0
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                     |S| | | | | |S|V|   | | |P|P|M|P|P|D|T|P|V|
|                     |M| | | | | |M|M|   | | |C|G|C|A|S|E|S|V|M|
|                     |E| | | | | |X|X|   | | |E|E|E|E|E| |D|I|E|
|                     |P| | | | | |E|E|   | | | | | | | | | | | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+|+|+|+-+-+-+-+-+|+|+-+-+-+-+-+-+-+-+-+
                           | | |           | |
                           | | |           | +-> OSFXSR
                           | | |           +-> OSXMMEXCPT
                           | | +-> FSGSBASE
                           | +-> PCIDE
                           +-> OSXSAVE
  • VME: Virtual-8086 Mode Extension
  • PVI: Protected-Mode Virtual Interrupts
  • TSD: Time Stamp Disable
  • DE: Debugging Extensions
  • PSE: Page Size Extensions
  • PAE: Page Address Extension
  • MCE: Machine-Check Enable
  • PGE: Page Global Enable
  • PCE: Performance-Monitoring Counter Enable
  • OSFXSR: Operating System Support for FXSAVE and FXSTOR instructions
  • OSXMMEXCPT: Operating System Support for Unmasked SIMD Floating-Point Exceptions
  • VMXE: VMX-Enable Bit
  • SMXE: SMX-Enable bit
  • FSGSBASE: FSGSBASE-Enable Bit
  • PCIDE: PCID-Enable Bit
  • OSXSAVE: XSAVE and Processor Extended States-Enable Bit
  • SMEP: SMEP-Enable Bit

Clone this wiki locally