From: Oliver Kurth Date: Fri, 15 Sep 2017 18:22:53 +0000 (-0700) Subject: Common header file change that is not relevant to open-vm-tools. X-Git-Tag: stable-10.2.0~634 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95a253cdcdad9a3f31cb38d7ede79c25587fd8d3;p=thirdparty%2Fopen-vm-tools.git Common header file change that is not relevant to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/x86_basic_defs.h b/open-vm-tools/lib/include/x86_basic_defs.h index 5298bdc06..8013fb1ab 100644 --- a/open-vm-tools/lib/include/x86_basic_defs.h +++ b/open-vm-tools/lib/include/x86_basic_defs.h @@ -54,7 +54,20 @@ #define CR0_NW 0x20000000 #define CR0_CD 0x40000000 #define CR0_PG 0x80000000 + +#define CR0_CACHE_CONTROL (CR0_CD | CR0_NW) + #define CR0_RESERVED CONST64U(0xffffffff1ffaffc0) +/* + * Note: The "Not Reserved" bits in CR0 are: + * PG, CD, NW, AM, WP, NE, ET, TS, EM, MP, PE + * | | | | | | + * | | +---------------+---+---+---> CR0_MUTABLE + * | | + * +---+--> CR0_CACHE_CONTROL + * + * (CR0_MUTABLE is defined in vmkernel/private/x86/cpu.h) + */ #define CR3_PWT 0x00000008 #define CR3_PCD 0x00000010