Skip to content

Commit

Permalink
x86: Reformat and cleanup CR4 constants
Browse files Browse the repository at this point in the history
Encode CR0 constants in an easier readable form and remove unused PGE.
Also add a mask of the reserved bits that need to be left as-is on
modifications.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Mar 18, 2015
1 parent 89e32d3 commit 6cf474c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hypervisor/arch/x86/include/asm/processor.h
Expand Up @@ -41,9 +41,10 @@
#define X86_CR0_RESERVED \
(BIT_MASK(28, 19) | (1UL << 17) | BIT_MASK(15, 6))

#define X86_CR4_PAE 0x00000020
#define X86_CR4_PGE 0x00000080
#define X86_CR4_VMXE 0x00002000
#define X86_CR4_PAE (1UL << 5)
#define X86_CR4_VMXE (1UL << 13)
#define X86_CR4_RESERVED \
(BIT_MASK(31, 22) | (1UL << 19) | (1UL << 15) | BIT_MASK(12, 11))

#define X86_XCR0_FP 0x00000001

Expand Down

0 comments on commit 6cf474c

Please sign in to comment.