NOTE that this register is the only control register that can be written and read via 2 ways unlike the other that can be accessed only via the MOV instruction
os support for unmasked simd floating point exceptions
11
umip
user mode instruction prevention (#GP on SGDT, SIDT, SLDT, SMSW, and STR instructions when CPL > 0)
13
vmxe
virtual machine extensions enable
14
smxe
safer mode extensions enable
17
pcide
pcid enable
18
osxsave
xsave and processor extended states enable
20
smep
supervisor mode executions protection enable
21
smap
supervisor mode access protection enable
CR5 - CR7
Reserved, same case as CR1.
Debug Registers
DR0 - DR3
Contain linear addresses of up to 4 breakpoints. If paging is enabled, they are translated to physical addresses.
DR6
It permits the debugger to determine which debug conditions have occurred.
Bits 0 through 3 indicates, when set, that it's associated breakpoint condition was met when a debug exception was generated.
Bit 13 indicates that the next instruction in the instruction stream accesses one of the debug registers.
Bit 14 indicates (when set) that the debug exception was triggered by the single-step execution mode (enabled with TF bit in EFLAGS).
Bit 15 indicates (when set) that the debug instruction resulted from a task switch where T flag in the TSS of target task was set.
Bit 16 indicates (when clear) that the debug exception or breakpoint exception occured inside an RTM region.
DR7
bit
description
0
local DR0 breakpoint
1
global DR0 breakpoint
2
local DR1 breakpoint
3
global DR1 breakpoint
4
local DR2 breakpoint
5
global DR2 breakpoint
6
local DR3 breakpoint
7
global DR3 breakpoint
16-17
conditions for DR0
18-19
size of DR0 breakpoint
20-21
conditions for DR1
22-23
size of DR1 breakpoint
24-25
conditions for DR2
26-27
size of DR2 breakpoint
28-29
conditions for DR3
30-31
size of DR3 breakpoint
A local breakpoint bit deactivates on hardware task switches, while a global does not.
00b condition means execution break, 01b means a write watchpoint, and 11b means an R/W watchpoint. 10b is reserved for I/O R/W (unsupported).