A control register is a processor register which changes or controls the general behavior of a CPU or other digital device. Common tasks performed by control registers include interrupt control, switching the addressing mode, paging control, and coprocessor control.

Control registers in x64 series[edit]

Length - 1.06' (27 mm) Diameter - 0.63' (16 mm) Weight: 0.39 oz. (11 g) Caution: CR2 Lithium batteries are primary batteries and Not Rechargeable. Inserting a CR2 or any primary lithium battery into a charger may cause severe damage to both the battery and charger. 8 strings, for 8 ribs umbrella, patio umbrella, beach umbrella, the whole string is IP67 waterproof to use under umbrella outside, each measures 1.3 meters (4.3ft), each string has 15 led bulbs. 8 Lighting modes, twinkle, flash, in wave, solo go, combination, slow fade, chasing, steady on.with remote control, brightness is dimmable and has.

  1. Umbrella is a great anti-duplication tool that reports duplicates at the time they are created. Prevention is better than cure.: App reports duplicates at the time of their creation. Now you do not need to spend time on work with a huge amount of results when using the standard duplication tool.
  2. Umbrella 1.0.1 CR2. Umbrella is a prevention tool that reports the duplicates the moment they are created. Prevention is better than cure.: Umbrella reports the duplicates the moment they are created. Forget the boring job of dealing with huge results when using a standard duplicate tool. Umbrella is the only duplicate-prevention tool available.

CR0[edit]

The CR0 register is 32 bits long on the 386 and higher processors. On x64 processors in long mode, it (and the other control registers) is 64 bits long. CR0 has various control flags that modify the basic operation of the processor.

BitNameFull NameDescription
0PEProtected Mode EnableIf 1, system is in protected mode, else system is in real mode
1MPMonitor co-processorControls interaction of WAIT/FWAIT instructions with TS flag in CR0
2EMEmulationIf set, no x87 floating-point unit present, if clear, x87 FPU present
3TSTask switchedAllows saving x87 task context upon a task switch only after x87 instruction used
4ETExtension typeOn the 386, it allowed to specify whether the external math coprocessor was an 80287 or 80387
5NENumeric errorEnable internal x87 floating point error reporting when set, else enables PC style x87 error detection
16WPWrite protectWhen set, the CPU can't write to read-only pages when privilege level is 0
18AMAlignment maskAlignment check enabled if AM set, AC flag (in EFLAGS register) set, and privilege level is 3
29NWNot-write throughGlobally enables/disable write-through caching
30CDCache disableGlobally enables/disable the memory cache
31PGPagingIf 1, enable paging and use the § CR3 register, else disable paging.

CR1[edit]

Reserved, the CPU will throw a #UD exception when trying to access it.

CR2[edit]

Contains a value called Page Fault Linear Address (PFLA). When a page fault occurs, the address the program attempted to access is stored in the CR2 register.

CR3[edit]

Umbrella 1 0 1 Cr2 File

Typical use of CR3 in address translation with 4 KiB pages

Used when virtual addressing is enabled, hence when the PG bit is set in CR0. CR3 enables the processor to translate linear addresses into physical addresses by locating the page directory and page tables for the current task. Typically, the upper 20 bits of CR3 become the page directory base registerHopsin raw zip free. (PDBR), which stores the physical address of the first page directory entry. If the PCIDE bit in CR4 is set, the lowest 12 bits are used for the process-context identifier (PCID).[1]

Umbrella 1 0 1 Cr2 Converter

CR4[edit]

Used in protected mode to control operations such as virtual-8086 support, enabling I/O breakpoints, page size extension and machine-check exceptions.

Umbrella
BitNameFull NameDescription
0VMEVirtual 8086 Mode ExtensionsIf set, enables support for the virtual interrupt flag (VIF) in virtual-8086 mode.
1PVIProtected-mode Virtual InterruptsIf set, enables support for the virtual interrupt flag (VIF) in protected mode.
2TSDTime Stamp DisableIf set, RDTSC instruction can only be executed when in ring 0, otherwise RDTSC can be used at any privilege level.
3DEDebugging ExtensionsIf set, enables debug register based breaks on I/O space access.
4PSEPage Size ExtensionIf unset, page size is 4 KiB, else page size is increased to 4 MiB

If PAE is enabled or the processor is in x86-64 long mode this bit is ignored.[2]

5PAEPhysical Address ExtensionIf set, changes page table layout to translate 32-bit virtual addresses into extended 36-bit physical addresses.
6MCEMachine Check ExceptionIf set, enables machine check interrupts to occur.
7PGEPage Global EnabledIf set, address translations (PDE or PTE records) may be shared between address spaces.
8PCEPerformance-Monitoring Counter enableIf set, RDPMC can be executed at any privilege level, else RDPMC can only be used in ring 0.
9OSFXSROperating system support for FXSAVE and FXRSTOR instructionsIf set, enables Streaming SIMD Extensions (SSE) instructions and fast FPU save & restore.
10OSXMMEXCPTOperating System Support for Unmasked SIMD Floating-Point ExceptionsIf set, enables unmasked SSE exceptions.
11UMIPUser-Mode Instruction PreventionIf set, the SGDT, SIDT, SLDT, SMSW and STR instructions cannot be executed if CPL > 0.[1]
12LA57(none specified)If set, enables 5-Level Paging.[3]
13VMXEVirtual Machine Extensions Enablesee Intel VT-x x86 virtualization.
14SMXESafer Mode Extensions Enablesee Trusted Execution Technology (TXT)
16FSGSBASEEnables the instructions RDFSBASE, RDGSBASE, WRFSBASE, and WRGSBASE.
17PCIDEPCID EnableIf set, enables process-context identifiers (PCIDs).
18OSXSAVEXSAVE and Processor Extended States Enable
20SMEP[4]Supervisor Mode Execution Protection EnableIf set, execution of code in a higher ring generates a fault.
21SMAPSupervisor Mode Access Prevention EnableIf set, access of data in a higher ring generates a fault.[5]
22PKEProtection Key EnableSee Intel 64 and IA-32 Architectures Software Developer’s Manual.

CR5-7[edit]

Reserved, same case as CR1.

Additional Control registers in x86-64 series[edit]

EFER[edit]

Extended Feature Enable Register (EFER) is a model-specific register added in the AMD K6 processor, to allow enabling the SYSCALL/SYSRET instruction, and later for entering and exiting long mode. This register becomes architectural in AMD64 and has been adopted by Intel as IA32_EFER. Its MSR number is 0xC0000080.

BitPurpose
0SCE (System Call Extensions)
1DPE (AMD K6 only: Data Prefetch Enable)
2SEWBED (AMD K6 only: Speculative EWBE# Disable)
3GEWBED (AMD K6 only: Global EWBE# Disable)
4L2D (AMD K6 only: L2 Cache Disable)
5-7Reserved, Read as Zero
8LME (Long Mode Enable)
9Reserved
10LMA (Long Mode Active)
11NXE (No-Execute Enable)
12SVME (Secure Virtual Machine Enable)
13LMSLE (Long Mode Segment Limit Enable)
14FFXSR (Fast FXSAVE/FXRSTOR)
15TCE (Translation Cache Extension)
16–63Reserved

CR8[edit]

Makeup fixing powder. CR8 is a new register accessible in 64-bit mode using the REX prefix. https://2tutima-zuxe.wixsite.com/freequote/post/crazy-craft-for-computer. CR8 is used to prioritize external interrupts and is referred to as the task-priority register (TPR).[2]

Emu official website. The AMD64 architecture allows software to define up to 15 external interrupt-priority classes. Priority classes are numbered from 1 to 15, with priority-class 1 being the lowest and priority-class 15 the highest. CR8 uses the four low-order bits for specifying a task priority and the remaining 60 bits are reserved and must be written with zeros.

System software can use the TPR register to temporarily block low-priority interrupts from interrupting a high-priority task. This is accomplished by loading TPR with a value corresponding to the highest-priority interrupt that is to be blocked. For example, loading TPR with a value of 9 (1001b) blocks all interrupts with a priority class of 9 or less, while allowing all interrupts with a priority class of 10 or more to be recognized. Loading TPR with 0 enables all external interrupts. Loading TPR with 15 (1111b) disables all external interrupts.

The TPR is cleared to 0 on reset.

XCR0 and XSS[edit]

XCR0, or Extended Control Register 0, is a control register which is used to toggle the storing or loading of registers related to specific CPU features using the XSAVE/XRSTOR instructions. It is also used with some features to enable or disable the processor's ability to execute their corresponding instructions. It can be accessed using the privileged XSETBV and nonprivileged XGETBV instructions.[6]

BitPurpose
0X87 (x87 FPU/MMX State, note, must be '1')
1SSE (XSAVE feature set enable for MXCSR and XMM regs)
2AVX (AVX enable, and XSAVE feature set can be used to manage YMM regs)
3BNDREG (MPX enable, and XSAVE feature set can be used for BND regs)
4BNDCSR (MPX enable, and XSAVE feature set can be used for BNDCFGU and BNDSTATUS regs)
5opmask (AVX-512 enable, and XSAVE feature set can be used for AVX opmask, AKA k-mask, regs)
6ZMM_hi256 (AVX-512 enable, and XSAVE feature set can be used for upper-halves of the lower ZMM regs)
7Hi16_ZMM (AVX-512 enable, and XSAVE feature set can be used for the upper ZMM regs)
8Reserved
9PKRU (XSAVE feature set can be used for PKRU register, which is part of the protection keys mechanism.)
10Reserved (must be '0')
11Control-flow Enforcement Technology (CET) User State
12Control-flow Enforcement Technology (CET) Supervisor State
13XAAD (Auxilary asynchronous anomaly detection feature to enable enclave toaster[7] for cryptographic routines.)
14–63Reserved (must be '0')

There is also the IA32_XSS MSR, which is located at address 0DA0h. The IA32_XSS MSR controls bits of XCR0 which are considered to be 'supervisor' state, and should be invisible to regular programs. It operates with the privileged XSAVES and XRSTORS instructions by adding supervisor state to the data they operate with. Put simply, if the X87 state was enabled in XCR0 and PT state was enabled in IA32_XSS, the XSAVE instruction would only store X87 state, while the privileged XSAVES would store both X87 and PT states. Because it is an MSR, it can be accessed using the RDMSR and WRMSR instructions.

BitPurpose
0–7Reserved; must be 0.
8PT (Enables the saving and loading of nine Processor Trace MSRs.)
9–12Reserved; must be 0.
13HDC (Enables the saving and loading of the IA32_PM_CTL1 MSR.)
14–63Reserved; must be 0.

Umbrella 1 0 1 Cr2 =

File

See also[edit]

Wikibooks has a book on the topic of: X86 Assembly/Protected Mode

References[edit]

  1. ^ abIntel Corporation (2016). '4.10.1 Process-Context Identifiers (PCIDs)'. Intel 64 and IA-32 Architectures Software Developer’s Manual(PDF). Volume 3A: System Programming Guide, Part 1.
  2. ^ ab'AMD64 Architecture Programmer's Manual Volume 2: System Programming'(PDF). AMD. September 2012. p. 127 & 130. Retrieved 2017-08-04.
  3. ^'5-Level Paging and 5-Level EPT'(PDF). Intel. May 2017. p. 16. Retrieved 2018-01-23.
  4. ^Fischer, Stephen (2011-09-21). 'Supervisor Mode Execution Protection'(PDF). NSA Trusted Computing Conference 2011. National Conference Services, Inc. Archived from the original(PDF) on 2016-08-03. Retrieved 2017-08-04.
  5. ^Anvin, H. Peter (2012-09-21). 'x86: Supervisor Mode Access Prevention'. LWN.net. Retrieved 2017-08-04.
  6. ^'Chapter 13, Managing State Using The Xsave Feature Set'(PDF). Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 1: Basic Architecture. Intel Corporation (2019). Retrieved 23 March 2019.
  7. ^https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/storing_keys_in_the_secure_enclave

Umbrella 1 0 1 Cr2032

External links[edit]

  • Wyatt's World: Cracking Open the Pentium III (1999-05-28)
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Control_register&oldid=971323878'