2 MSR Definitions for the Intel(R) Core(TM) 2 Processor Family.
4 Provides defines for Machine Specific Registers(MSR) indexes. Data structures
5 are provided for MSRs that contain one or more bit fields. If the MSR value
6 returned is a single 32-bit or 64-bit value, then a data structure is not
9 Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
10 This program and the accompanying materials
11 are licensed and made available under the terms and conditions of the BSD License
12 which accompanies this distribution. The full text of the license may be found at
13 http://opensource.org/licenses/bsd-license.php
15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 @par Specification Reference:
19 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 3,
20 September 2016, Chapter 35 Model-Specific-Registers (MSR), Section 35.2.
24 #ifndef __CORE2_MSR_H__
25 #define __CORE2_MSR_H__
27 #include <Register/ArchitecturalMsr.h>
30 Is Intel(R) Core(TM) 2 Processor Family?
32 @param DisplayFamily Display Family ID
33 @param DisplayModel Display Model ID
35 @retval TRUE Yes, it is.
36 @retval FALSE No, it isn't.
38 #define IS_CORE2_PROCESSOR(DisplayFamily, DisplayModel) \
39 (DisplayFamily == 0x06 && \
41 DisplayModel == 0x0F || \
42 DisplayModel == 0x17 \
47 Shared. Model Specific Platform ID (R).
49 @param ECX MSR_CORE2_PLATFORM_ID (0x00000017)
50 @param EAX Lower 32-bits of MSR value.
51 Described by the type MSR_CORE2_PLATFORM_ID_REGISTER.
52 @param EDX Upper 32-bits of MSR value.
53 Described by the type MSR_CORE2_PLATFORM_ID_REGISTER.
57 MSR_CORE2_PLATFORM_ID_REGISTER Msr;
59 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PLATFORM_ID);
61 @note MSR_CORE2_PLATFORM_ID is defined as MSR_PLATFORM_ID in SDM.
63 #define MSR_CORE2_PLATFORM_ID 0x00000017
66 MSR information returned for MSR index #MSR_CORE2_PLATFORM_ID
70 /// Individual bit fields
75 /// [Bits 12:8] Maximum Qualified Ratio (R) The maximum allowed bus ratio.
77 UINT32 MaximumQualifiedRatio
:5;
81 /// [Bits 52:50] See Table 35-2.
87 /// All bit fields as a 64-bit value
90 } MSR_CORE2_PLATFORM_ID_REGISTER
;
94 Shared. Processor Hard Power-On Configuration (R/W) Enables and disables
95 processor features; (R) indicates current processor configuration.
97 @param ECX MSR_CORE2_EBL_CR_POWERON (0x0000002A)
98 @param EAX Lower 32-bits of MSR value.
99 Described by the type MSR_CORE2_EBL_CR_POWERON_REGISTER.
100 @param EDX Upper 32-bits of MSR value.
101 Described by the type MSR_CORE2_EBL_CR_POWERON_REGISTER.
105 MSR_CORE2_EBL_CR_POWERON_REGISTER Msr;
107 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_EBL_CR_POWERON);
108 AsmWriteMsr64 (MSR_CORE2_EBL_CR_POWERON, Msr.Uint64);
110 @note MSR_CORE2_EBL_CR_POWERON is defined as MSR_EBL_CR_POWERON in SDM.
112 #define MSR_CORE2_EBL_CR_POWERON 0x0000002A
115 MSR information returned for MSR index #MSR_CORE2_EBL_CR_POWERON
119 /// Individual bit fields
124 /// [Bit 1] Data Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled
125 /// Note: Not all processor implements R/W.
127 UINT32 DataErrorCheckingEnable
:1;
129 /// [Bit 2] Response Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled
130 /// Note: Not all processor implements R/W.
132 UINT32 ResponseErrorCheckingEnable
:1;
134 /// [Bit 3] MCERR# Drive Enable (R/W) 1 = Enabled; 0 = Disabled Note: Not
135 /// all processor implements R/W.
137 UINT32 MCERR_DriveEnable
:1;
139 /// [Bit 4] Address Parity Enable (R/W) 1 = Enabled; 0 = Disabled Note:
140 /// Not all processor implements R/W.
142 UINT32 AddressParityEnable
:1;
146 /// [Bit 7] BINIT# Driver Enable (R/W) 1 = Enabled; 0 = Disabled Note: Not
147 /// all processor implements R/W.
149 UINT32 BINIT_DriverEnable
:1;
151 /// [Bit 8] Output Tri-state Enabled (R/O) 1 = Enabled; 0 = Disabled.
153 UINT32 OutputTriStateEnable
:1;
155 /// [Bit 9] Execute BIST (R/O) 1 = Enabled; 0 = Disabled.
157 UINT32 ExecuteBIST
:1;
159 /// [Bit 10] MCERR# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled.
161 UINT32 MCERR_ObservationEnabled
:1;
163 /// [Bit 11] Intel TXT Capable Chipset. (R/O) 1 = Present; 0 = Not Present.
165 UINT32 IntelTXTCapableChipset
:1;
167 /// [Bit 12] BINIT# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled.
169 UINT32 BINIT_ObservationEnabled
:1;
172 /// [Bit 14] 1 MByte Power on Reset Vector (R/O) 1 = 1 MByte; 0 = 4 GBytes.
174 UINT32 ResetVector
:1;
177 /// [Bits 17:16] APIC Cluster ID (R/O).
179 UINT32 APICClusterID
:2;
181 /// [Bit 18] N/2 Non-Integer Bus Ratio (R/O) 0 = Integer ratio; 1 =
182 /// Non-integer ratio.
184 UINT32 NonIntegerBusRatio
:1;
187 /// [Bits 21:20] Symmetric Arbitration ID (R/O).
189 UINT32 SymmetricArbitrationID
:2;
191 /// [Bits 26:22] Integer Bus Frequency Ratio (R/O).
193 UINT32 IntegerBusFrequencyRatio
:5;
198 /// All bit fields as a 32-bit value
202 /// All bit fields as a 64-bit value
205 } MSR_CORE2_EBL_CR_POWERON_REGISTER
;
209 Unique. Control Features in Intel 64Processor (R/W) See Table 35-2.
211 @param ECX MSR_CORE2_FEATURE_CONTROL (0x0000003A)
212 @param EAX Lower 32-bits of MSR value.
213 Described by the type MSR_CORE2_FEATURE_CONTROL_REGISTER.
214 @param EDX Upper 32-bits of MSR value.
215 Described by the type MSR_CORE2_FEATURE_CONTROL_REGISTER.
219 MSR_CORE2_FEATURE_CONTROL_REGISTER Msr;
221 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_FEATURE_CONTROL);
222 AsmWriteMsr64 (MSR_CORE2_FEATURE_CONTROL, Msr.Uint64);
224 @note MSR_CORE2_FEATURE_CONTROL is defined as MSR_FEATURE_CONTROL in SDM.
226 #define MSR_CORE2_FEATURE_CONTROL 0x0000003A
229 MSR information returned for MSR index #MSR_CORE2_FEATURE_CONTROL
233 /// Individual bit fields
238 /// [Bit 3] Unique. SMRR Enable (R/WL) When this bit is set and the lock
239 /// bit is set makes the SMRR_PHYS_BASE and SMRR_PHYS_MASK registers read
240 /// visible and writeable while in SMM.
247 /// All bit fields as a 32-bit value
251 /// All bit fields as a 64-bit value
254 } MSR_CORE2_FEATURE_CONTROL_REGISTER
;
258 Unique. Last Branch Record n From IP (R/W) One of four pairs of last branch
259 record registers on the last branch record stack. The From_IP part of the
260 stack contains pointers to the source instruction. See also: - Last Branch
261 Record Stack TOS at 1C9H - Section 17.5.
263 @param ECX MSR_CORE2_LASTBRANCH_n_FROM_IP
264 @param EAX Lower 32-bits of MSR value.
265 @param EDX Upper 32-bits of MSR value.
271 Msr = AsmReadMsr64 (MSR_CORE2_LASTBRANCH_0_FROM_IP);
272 AsmWriteMsr64 (MSR_CORE2_LASTBRANCH_0_FROM_IP, Msr);
274 @note MSR_CORE2_LASTBRANCH_0_FROM_IP is defined as MSR_LASTBRANCH_0_FROM_IP in SDM.
275 MSR_CORE2_LASTBRANCH_1_FROM_IP is defined as MSR_LASTBRANCH_1_FROM_IP in SDM.
276 MSR_CORE2_LASTBRANCH_2_FROM_IP is defined as MSR_LASTBRANCH_2_FROM_IP in SDM.
277 MSR_CORE2_LASTBRANCH_3_FROM_IP is defined as MSR_LASTBRANCH_3_FROM_IP in SDM.
280 #define MSR_CORE2_LASTBRANCH_0_FROM_IP 0x00000040
281 #define MSR_CORE2_LASTBRANCH_1_FROM_IP 0x00000041
282 #define MSR_CORE2_LASTBRANCH_2_FROM_IP 0x00000042
283 #define MSR_CORE2_LASTBRANCH_3_FROM_IP 0x00000043
288 Unique. Last Branch Record n To IP (R/W) One of four pairs of last branch
289 record registers on the last branch record stack. This To_IP part of the
290 stack contains pointers to the destination instruction.
292 @param ECX MSR_CORE2_LASTBRANCH_n_TO_IP
293 @param EAX Lower 32-bits of MSR value.
294 @param EDX Upper 32-bits of MSR value.
300 Msr = AsmReadMsr64 (MSR_CORE2_LASTBRANCH_0_TO_IP);
301 AsmWriteMsr64 (MSR_CORE2_LASTBRANCH_0_TO_IP, Msr);
303 @note MSR_CORE2_LASTBRANCH_0_TO_IP is defined as MSR_LASTBRANCH_0_TO_IP in SDM.
304 MSR_CORE2_LASTBRANCH_1_TO_IP is defined as MSR_LASTBRANCH_1_TO_IP in SDM.
305 MSR_CORE2_LASTBRANCH_2_TO_IP is defined as MSR_LASTBRANCH_2_TO_IP in SDM.
306 MSR_CORE2_LASTBRANCH_3_TO_IP is defined as MSR_LASTBRANCH_3_TO_IP in SDM.
309 #define MSR_CORE2_LASTBRANCH_0_TO_IP 0x00000060
310 #define MSR_CORE2_LASTBRANCH_1_TO_IP 0x00000061
311 #define MSR_CORE2_LASTBRANCH_2_TO_IP 0x00000062
312 #define MSR_CORE2_LASTBRANCH_3_TO_IP 0x00000063
317 Unique. System Management Mode Base Address register (WO in SMM)
318 Model-specific implementation of SMRR-like interface, read visible and write
321 @param ECX MSR_CORE2_SMRR_PHYSBASE (0x000000A0)
322 @param EAX Lower 32-bits of MSR value.
323 Described by the type MSR_CORE2_SMRR_PHYSBASE_REGISTER.
324 @param EDX Upper 32-bits of MSR value.
325 Described by the type MSR_CORE2_SMRR_PHYSBASE_REGISTER.
329 MSR_CORE2_SMRR_PHYSBASE_REGISTER Msr;
332 AsmWriteMsr64 (MSR_CORE2_SMRR_PHYSBASE, Msr.Uint64);
334 @note MSR_CORE2_SMRR_PHYSBASE is defined as MSR_SMRR_PHYSBASE in SDM.
336 #define MSR_CORE2_SMRR_PHYSBASE 0x000000A0
339 MSR information returned for MSR index #MSR_CORE2_SMRR_PHYSBASE
343 /// Individual bit fields
348 /// [Bits 31:12] PhysBase. SMRR physical Base Address.
354 /// All bit fields as a 32-bit value
358 /// All bit fields as a 64-bit value
361 } MSR_CORE2_SMRR_PHYSBASE_REGISTER
;
365 Unique. System Management Mode Physical Address Mask register (WO in SMM)
366 Model-specific implementation of SMRR-like interface, read visible and write
369 @param ECX MSR_CORE2_SMRR_PHYSMASK (0x000000A1)
370 @param EAX Lower 32-bits of MSR value.
371 Described by the type MSR_CORE2_SMRR_PHYSMASK_REGISTER.
372 @param EDX Upper 32-bits of MSR value.
373 Described by the type MSR_CORE2_SMRR_PHYSMASK_REGISTER.
377 MSR_CORE2_SMRR_PHYSMASK_REGISTER Msr;
380 AsmWriteMsr64 (MSR_CORE2_SMRR_PHYSMASK, Msr.Uint64);
382 @note MSR_CORE2_SMRR_PHYSMASK is defined as MSR_SMRR_PHYSMASK in SDM.
384 #define MSR_CORE2_SMRR_PHYSMASK 0x000000A1
387 MSR information returned for MSR index #MSR_CORE2_SMRR_PHYSMASK
391 /// Individual bit fields
396 /// [Bit 11] Valid. Physical address base and range mask are valid.
400 /// [Bits 31:12] PhysMask. SMRR physical address range mask.
406 /// All bit fields as a 32-bit value
410 /// All bit fields as a 64-bit value
413 } MSR_CORE2_SMRR_PHYSMASK_REGISTER
;
417 Shared. Scalable Bus Speed(RO) This field indicates the intended scalable
418 bus clock speed for processors based on Intel Core microarchitecture:.
420 @param ECX MSR_CORE2_FSB_FREQ (0x000000CD)
421 @param EAX Lower 32-bits of MSR value.
422 Described by the type MSR_CORE2_FSB_FREQ_REGISTER.
423 @param EDX Upper 32-bits of MSR value.
424 Described by the type MSR_CORE2_FSB_FREQ_REGISTER.
428 MSR_CORE2_FSB_FREQ_REGISTER Msr;
430 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_FSB_FREQ);
432 @note MSR_CORE2_FSB_FREQ is defined as MSR_FSB_FREQ in SDM.
434 #define MSR_CORE2_FSB_FREQ 0x000000CD
437 MSR information returned for MSR index #MSR_CORE2_FSB_FREQ
441 /// Individual bit fields
445 /// [Bits 2:0] - Scalable Bus Speed
446 /// 101B: 100 MHz (FSB 400)
447 /// 001B: 133 MHz (FSB 533)
448 /// 011B: 167 MHz (FSB 667)
449 /// 010B: 200 MHz (FSB 800)
450 /// 000B: 267 MHz (FSB 1067)
451 /// 100B: 333 MHz (FSB 1333)
453 /// 133.33 MHz should be utilized if performing calculation with System
454 /// Bus Speed when encoding is 001B. 166.67 MHz should be utilized if
455 /// performing calculation with System Bus Speed when encoding is 011B.
456 /// 266.67 MHz should be utilized if performing calculation with System
457 /// Bus Speed when encoding is 000B. 333.33 MHz should be utilized if
458 /// performing calculation with System Bus Speed when encoding is 100B.
460 UINT32 ScalableBusSpeed
:3;
465 /// All bit fields as a 32-bit value
469 /// All bit fields as a 64-bit value
472 } MSR_CORE2_FSB_FREQ_REGISTER
;
478 @param ECX MSR_CORE2_BBL_CR_CTL3 (0x0000011E)
479 @param EAX Lower 32-bits of MSR value.
480 Described by the type MSR_CORE2_BBL_CR_CTL3_REGISTER.
481 @param EDX Upper 32-bits of MSR value.
482 Described by the type MSR_CORE2_BBL_CR_CTL3_REGISTER.
486 MSR_CORE2_BBL_CR_CTL3_REGISTER Msr;
488 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_BBL_CR_CTL3);
489 AsmWriteMsr64 (MSR_CORE2_BBL_CR_CTL3, Msr.Uint64);
491 @note MSR_CORE2_BBL_CR_CTL3 is defined as MSR_BBL_CR_CTL3 in SDM.
493 #define MSR_CORE2_BBL_CR_CTL3 0x0000011E
496 MSR information returned for MSR index #MSR_CORE2_BBL_CR_CTL3
500 /// Individual bit fields
504 /// [Bit 0] L2 Hardware Enabled (RO) 1 = If the L2 is hardware-enabled 0 =
505 /// Indicates if the L2 is hardware-disabled.
507 UINT32 L2HardwareEnabled
:1;
510 /// [Bit 8] L2 Enabled (R/W) 1 = L2 cache has been initialized 0 =
511 /// Disabled (default) Until this bit is set the processor will not
512 /// respond to the WBINVD instruction or the assertion of the FLUSH# input.
517 /// [Bit 23] L2 Not Present (RO) 1. = L2 Present 2. = L2 Not Present.
519 UINT32 L2NotPresent
:1;
524 /// All bit fields as a 32-bit value
528 /// All bit fields as a 64-bit value
531 } MSR_CORE2_BBL_CR_CTL3_REGISTER
;
537 @param ECX MSR_CORE2_PERF_STATUS (0x00000198)
538 @param EAX Lower 32-bits of MSR value.
539 Described by the type MSR_CORE2_PERF_STATUS_REGISTER.
540 @param EDX Upper 32-bits of MSR value.
541 Described by the type MSR_CORE2_PERF_STATUS_REGISTER.
545 MSR_CORE2_PERF_STATUS_REGISTER Msr;
547 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PERF_STATUS);
548 AsmWriteMsr64 (MSR_CORE2_PERF_STATUS, Msr.Uint64);
550 @note MSR_CORE2_PERF_STATUS is defined as MSR_PERF_STATUS in SDM.
552 #define MSR_CORE2_PERF_STATUS 0x00000198
555 MSR information returned for MSR index #MSR_CORE2_PERF_STATUS
559 /// Individual bit fields
563 /// [Bits 15:0] Current Performance State Value.
565 UINT32 CurrentPerformanceStateValue
:16;
568 /// [Bit 31] XE Operation (R/O). If set, XE operation is enabled. Default
571 UINT32 XEOperation
:1;
574 /// [Bits 44:40] Maximum Bus Ratio (R/O) Indicates maximum bus ratio
575 /// configured for the processor.
577 UINT32 MaximumBusRatio
:5;
580 /// [Bit 46] Non-Integer Bus Ratio (R/O) Indicates non-integer bus ratio
581 /// is enabled. Applies processors based on Enhanced Intel Core
582 /// microarchitecture.
584 UINT32 NonIntegerBusRatio
:1;
588 /// All bit fields as a 64-bit value
591 } MSR_CORE2_PERF_STATUS_REGISTER
;
597 @param ECX MSR_CORE2_THERM2_CTL (0x0000019D)
598 @param EAX Lower 32-bits of MSR value.
599 Described by the type MSR_CORE2_THERM2_CTL_REGISTER.
600 @param EDX Upper 32-bits of MSR value.
601 Described by the type MSR_CORE2_THERM2_CTL_REGISTER.
605 MSR_CORE2_THERM2_CTL_REGISTER Msr;
607 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_THERM2_CTL);
608 AsmWriteMsr64 (MSR_CORE2_THERM2_CTL, Msr.Uint64);
610 @note MSR_CORE2_THERM2_CTL is defined as MSR_THERM2_CTL in SDM.
612 #define MSR_CORE2_THERM2_CTL 0x0000019D
615 MSR information returned for MSR index #MSR_CORE2_THERM2_CTL
619 /// Individual bit fields
624 /// [Bit 16] TM_SELECT (R/W) Mode of automatic thermal monitor: 1. =
625 /// Thermal Monitor 1 (thermally-initiated on-die modulation of the
626 /// stop-clock duty cycle) 2. = Thermal Monitor 2 (thermally-initiated
627 /// frequency transitions) If bit 3 of the IA32_MISC_ENABLE register is
628 /// cleared, TM_SELECT has no effect. Neither TM1 nor TM2 are enabled.
635 /// All bit fields as a 32-bit value
639 /// All bit fields as a 64-bit value
642 } MSR_CORE2_THERM2_CTL_REGISTER
;
646 Enable Misc. Processor Features (R/W) Allows a variety of processor
647 functions to be enabled and disabled.
649 @param ECX MSR_CORE2_IA32_MISC_ENABLE (0x000001A0)
650 @param EAX Lower 32-bits of MSR value.
651 Described by the type MSR_CORE2_IA32_MISC_ENABLE_REGISTER.
652 @param EDX Upper 32-bits of MSR value.
653 Described by the type MSR_CORE2_IA32_MISC_ENABLE_REGISTER.
657 MSR_CORE2_IA32_MISC_ENABLE_REGISTER Msr;
659 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_IA32_MISC_ENABLE);
660 AsmWriteMsr64 (MSR_CORE2_IA32_MISC_ENABLE, Msr.Uint64);
662 @note MSR_CORE2_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.
664 #define MSR_CORE2_IA32_MISC_ENABLE 0x000001A0
667 MSR information returned for MSR index #MSR_CORE2_IA32_MISC_ENABLE
671 /// Individual bit fields
675 /// [Bit 0] Fast-Strings Enable See Table 35-2.
677 UINT32 FastStrings
:1;
680 /// [Bit 3] Unique. Automatic Thermal Control Circuit Enable (R/W) See
683 UINT32 AutomaticThermalControlCircuit
:1;
686 /// [Bit 7] Shared. Performance Monitoring Available (R) See Table 35-2.
688 UINT32 PerformanceMonitoring
:1;
691 /// [Bit 9] Hardware Prefetcher Disable (R/W) When set, disables the
692 /// hardware prefetcher operation on streams of data. When clear
693 /// (default), enables the prefetch queue. Disabling of the hardware
694 /// prefetcher may impact processor performance.
696 UINT32 HardwarePrefetcherDisable
:1;
698 /// [Bit 10] Shared. FERR# Multiplexing Enable (R/W) 1 = FERR# asserted by
699 /// the processor to indicate a pending break event within the processor 0
700 /// = Indicates compatible FERR# signaling behavior This bit must be set
701 /// to 1 to support XAPIC interrupt model usage.
705 /// [Bit 11] Shared. Branch Trace Storage Unavailable (RO) See Table 35-2.
709 /// [Bit 12] Shared. Processor Event Based Sampling Unavailable (RO) See
714 /// [Bit 13] Shared. TM2 Enable (R/W) When this bit is set (1) and the
715 /// thermal sensor indicates that the die temperature is at the
716 /// pre-determined threshold, the Thermal Monitor 2 mechanism is engaged.
717 /// TM2 will reduce the bus to core ratio and voltage according to the
718 /// value last written to MSR_THERM2_CTL bits 15:0.
719 /// When this bit is clear (0, default), the processor does not change
720 /// the VID signals or the bus to core ratio when the processor enters a
721 /// thermally managed state. The BIOS must enable this feature if the
722 /// TM2 feature flag (CPUID.1:ECX[8]) is set; if the TM2 feature flag is
723 /// not set, this feature is not supported and BIOS must not alter the
724 /// contents of the TM2 bit location. The processor is operating out of
725 /// specification if both this bit and the TM1 bit are set to 0.
730 /// [Bit 16] Shared. Enhanced Intel SpeedStep Technology Enable (R/W) See
736 /// [Bit 18] Shared. ENABLE MONITOR FSM (R/W) See Table 35-2.
740 /// [Bit 19] Shared. Adjacent Cache Line Prefetch Disable (R/W) When set
741 /// to 1, the processor fetches the cache line that contains data
742 /// currently required by the processor. When set to 0, the processor
743 /// fetches cache lines that comprise a cache line pair (128 bytes).
744 /// Single processor platforms should not set this bit. Server platforms
745 /// should set or clear this bit based on platform performance observed in
746 /// validation and testing. BIOS may contain a setup option that controls
747 /// the setting of this bit.
749 UINT32 AdjacentCacheLinePrefetchDisable
:1;
751 /// [Bit 20] Shared. Enhanced Intel SpeedStep Technology Select Lock
752 /// (R/WO) When set, this bit causes the following bits to become
753 /// read-only: - Enhanced Intel SpeedStep Technology Select Lock (this
754 /// bit), - Enhanced Intel SpeedStep Technology Enable bit. The bit must
755 /// be set before an Enhanced Intel SpeedStep Technology transition is
756 /// requested. This bit is cleared on reset.
761 /// [Bit 22] Shared. Limit CPUID Maxval (R/W) See Table 35-2.
763 UINT32 LimitCpuidMaxval
:1;
765 /// [Bit 23] Shared. xTPR Message Disable (R/W) See Table 35-2.
767 UINT32 xTPR_Message_Disable
:1;
771 /// [Bit 34] Unique. XD Bit Disable (R/W) See Table 35-2.
776 /// [Bit 37] Unique. DCU Prefetcher Disable (R/W) When set to 1, The DCU
777 /// L1 data cache prefetcher is disabled. The default value after reset is
778 /// 0. BIOS may write '1' to disable this feature. The DCU prefetcher is
779 /// an L1 data cache prefetcher. When the DCU prefetcher detects multiple
780 /// loads from the same line done within a time limit, the DCU prefetcher
781 /// assumes the next line will be required. The next line is prefetched in
782 /// to the L1 data cache from memory or L2.
784 UINT32 DCUPrefetcherDisable
:1;
786 /// [Bit 38] Shared. IDA Disable (R/W) When set to 1 on processors that
787 /// support IDA, the Intel Dynamic Acceleration feature (IDA) is disabled
788 /// and the IDA_Enable feature flag will be clear (CPUID.06H: EAX[1]=0).
789 /// When set to a 0 on processors that support IDA, CPUID.06H: EAX[1]
790 /// reports the processor's support of IDA is enabled. Note: the power-on
791 /// default value is used by BIOS to detect hardware support of IDA. If
792 /// power-on default value is 1, IDA is available in the processor. If
793 /// power-on default value is 0, IDA is not available.
797 /// [Bit 39] Unique. IP Prefetcher Disable (R/W) When set to 1, The IP
798 /// prefetcher is disabled. The default value after reset is 0. BIOS may
799 /// write '1' to disable this feature. The IP prefetcher is an L1 data
800 /// cache prefetcher. The IP prefetcher looks for sequential load history
801 /// to determine whether to prefetch the next expected data into the L1
802 /// cache from memory or L2.
804 UINT32 IPPrefetcherDisable
:1;
805 UINT32 Reserved10
:24;
808 /// All bit fields as a 64-bit value
811 } MSR_CORE2_IA32_MISC_ENABLE_REGISTER
;
815 Unique. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-3)
816 that points to the MSR containing the most recent branch record. See
817 MSR_LASTBRANCH_0_FROM_IP (at 40H).
819 @param ECX MSR_CORE2_LASTBRANCH_TOS (0x000001C9)
820 @param EAX Lower 32-bits of MSR value.
821 @param EDX Upper 32-bits of MSR value.
827 Msr = AsmReadMsr64 (MSR_CORE2_LASTBRANCH_TOS);
828 AsmWriteMsr64 (MSR_CORE2_LASTBRANCH_TOS, Msr);
830 @note MSR_CORE2_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
832 #define MSR_CORE2_LASTBRANCH_TOS 0x000001C9
836 Unique. Last Exception Record From Linear IP (R) Contains a pointer to the
837 last branch instruction that the processor executed prior to the last
838 exception that was generated or the last interrupt that was handled.
840 @param ECX MSR_CORE2_LER_FROM_LIP (0x000001DD)
841 @param EAX Lower 32-bits of MSR value.
842 @param EDX Upper 32-bits of MSR value.
848 Msr = AsmReadMsr64 (MSR_CORE2_LER_FROM_LIP);
850 @note MSR_CORE2_LER_FROM_LIP is defined as MSR_LER_FROM_LIP in SDM.
852 #define MSR_CORE2_LER_FROM_LIP 0x000001DD
856 Unique. Last Exception Record To Linear IP (R) This area contains a pointer
857 to the target of the last branch instruction that the processor executed
858 prior to the last exception that was generated or the last interrupt that
861 @param ECX MSR_CORE2_LER_TO_LIP (0x000001DE)
862 @param EAX Lower 32-bits of MSR value.
863 @param EDX Upper 32-bits of MSR value.
869 Msr = AsmReadMsr64 (MSR_CORE2_LER_TO_LIP);
871 @note MSR_CORE2_LER_TO_LIP is defined as MSR_LER_TO_LIP in SDM.
873 #define MSR_CORE2_LER_TO_LIP 0x000001DE
877 Unique. Fixed-Function Performance Counter Register n (R/W).
879 @param ECX MSR_CORE2_PERF_FIXED_CTRn
880 @param EAX Lower 32-bits of MSR value.
881 @param EDX Upper 32-bits of MSR value.
887 Msr = AsmReadMsr64 (MSR_CORE2_PERF_FIXED_CTR0);
888 AsmWriteMsr64 (MSR_CORE2_PERF_FIXED_CTR0, Msr);
890 @note MSR_CORE2_PERF_FIXED_CTR0 is defined as MSR_PERF_FIXED_CTR0 in SDM.
891 MSR_CORE2_PERF_FIXED_CTR1 is defined as MSR_PERF_FIXED_CTR1 in SDM.
892 MSR_CORE2_PERF_FIXED_CTR2 is defined as MSR_PERF_FIXED_CTR2 in SDM.
895 #define MSR_CORE2_PERF_FIXED_CTR0 0x00000309
896 #define MSR_CORE2_PERF_FIXED_CTR1 0x0000030A
897 #define MSR_CORE2_PERF_FIXED_CTR2 0x0000030B
902 Unique. RO. This applies to processors that do not support architectural
905 @param ECX MSR_CORE2_PERF_CAPABILITIES (0x00000345)
906 @param EAX Lower 32-bits of MSR value.
907 Described by the type MSR_CORE2_PERF_CAPABILITIES_REGISTER.
908 @param EDX Upper 32-bits of MSR value.
909 Described by the type MSR_CORE2_PERF_CAPABILITIES_REGISTER.
913 MSR_CORE2_PERF_CAPABILITIES_REGISTER Msr;
915 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PERF_CAPABILITIES);
916 AsmWriteMsr64 (MSR_CORE2_PERF_CAPABILITIES, Msr.Uint64);
918 @note MSR_CORE2_PERF_CAPABILITIES is defined as MSR_PERF_CAPABILITIES in SDM.
920 #define MSR_CORE2_PERF_CAPABILITIES 0x00000345
923 MSR information returned for MSR index #MSR_CORE2_PERF_CAPABILITIES
927 /// Individual bit fields
931 /// [Bits 5:0] LBR Format. See Table 35-2.
935 /// [Bit 6] PEBS Record Format.
939 /// [Bit 7] PEBSSaveArchRegs. See Table 35-2.
941 UINT32 PEBS_ARCH_REG
:1;
946 /// All bit fields as a 32-bit value
950 /// All bit fields as a 64-bit value
953 } MSR_CORE2_PERF_CAPABILITIES_REGISTER
;
957 Unique. Fixed-Function-Counter Control Register (R/W).
959 @param ECX MSR_CORE2_PERF_FIXED_CTR_CTRL (0x0000038D)
960 @param EAX Lower 32-bits of MSR value.
961 @param EDX Upper 32-bits of MSR value.
967 Msr = AsmReadMsr64 (MSR_CORE2_PERF_FIXED_CTR_CTRL);
968 AsmWriteMsr64 (MSR_CORE2_PERF_FIXED_CTR_CTRL, Msr);
970 @note MSR_CORE2_PERF_FIXED_CTR_CTRL is defined as MSR_PERF_FIXED_CTR_CTRL in SDM.
972 #define MSR_CORE2_PERF_FIXED_CTR_CTRL 0x0000038D
976 Unique. See Section 18.4.2, "Global Counter Control Facilities.".
978 @param ECX MSR_CORE2_PERF_GLOBAL_STATUS (0x0000038E)
979 @param EAX Lower 32-bits of MSR value.
980 @param EDX Upper 32-bits of MSR value.
986 Msr = AsmReadMsr64 (MSR_CORE2_PERF_GLOBAL_STATUS);
987 AsmWriteMsr64 (MSR_CORE2_PERF_GLOBAL_STATUS, Msr);
989 @note MSR_CORE2_PERF_GLOBAL_STATUS is defined as MSR_PERF_GLOBAL_STATUS in SDM.
991 #define MSR_CORE2_PERF_GLOBAL_STATUS 0x0000038E
995 Unique. See Section 18.4.2, "Global Counter Control Facilities.".
997 @param ECX MSR_CORE2_PERF_GLOBAL_CTRL (0x0000038F)
998 @param EAX Lower 32-bits of MSR value.
999 @param EDX Upper 32-bits of MSR value.
1001 <b>Example usage</b>
1005 Msr = AsmReadMsr64 (MSR_CORE2_PERF_GLOBAL_CTRL);
1006 AsmWriteMsr64 (MSR_CORE2_PERF_GLOBAL_CTRL, Msr);
1008 @note MSR_CORE2_PERF_GLOBAL_CTRL is defined as MSR_PERF_GLOBAL_CTRL in SDM.
1010 #define MSR_CORE2_PERF_GLOBAL_CTRL 0x0000038F
1014 Unique. See Section 18.4.2, "Global Counter Control Facilities.".
1016 @param ECX MSR_CORE2_PERF_GLOBAL_OVF_CTRL (0x00000390)
1017 @param EAX Lower 32-bits of MSR value.
1018 @param EDX Upper 32-bits of MSR value.
1020 <b>Example usage</b>
1024 Msr = AsmReadMsr64 (MSR_CORE2_PERF_GLOBAL_OVF_CTRL);
1025 AsmWriteMsr64 (MSR_CORE2_PERF_GLOBAL_OVF_CTRL, Msr);
1027 @note MSR_CORE2_PERF_GLOBAL_OVF_CTRL is defined as MSR_PERF_GLOBAL_OVF_CTRL in SDM.
1029 #define MSR_CORE2_PERF_GLOBAL_OVF_CTRL 0x00000390
1033 Unique. See Table 35-2. See Section 18.4.4, "Processor Event Based Sampling
1036 @param ECX MSR_CORE2_PEBS_ENABLE (0x000003F1)
1037 @param EAX Lower 32-bits of MSR value.
1038 Described by the type MSR_CORE2_PEBS_ENABLE_REGISTER.
1039 @param EDX Upper 32-bits of MSR value.
1040 Described by the type MSR_CORE2_PEBS_ENABLE_REGISTER.
1042 <b>Example usage</b>
1044 MSR_CORE2_PEBS_ENABLE_REGISTER Msr;
1046 Msr.Uint64 = AsmReadMsr64 (MSR_CORE2_PEBS_ENABLE);
1047 AsmWriteMsr64 (MSR_CORE2_PEBS_ENABLE, Msr.Uint64);
1049 @note MSR_CORE2_PEBS_ENABLE is defined as MSR_PEBS_ENABLE in SDM.
1051 #define MSR_CORE2_PEBS_ENABLE 0x000003F1
1054 MSR information returned for MSR index #MSR_CORE2_PEBS_ENABLE
1058 /// Individual bit fields
1062 /// [Bit 0] Enable PEBS on IA32_PMC0. (R/W).
1065 UINT32 Reserved1
:31;
1066 UINT32 Reserved2
:32;
1069 /// All bit fields as a 32-bit value
1073 /// All bit fields as a 64-bit value
1076 } MSR_CORE2_PEBS_ENABLE_REGISTER
;
1080 Unique. GBUSQ Event Control/Counter Register (R/W) Apply to Intel Xeon
1081 processor 7400 series (processor signature 06_1D) only. See Section 17.2.2.
1083 @param ECX MSR_CORE2_EMON_L3_CTR_CTLn
1084 @param EAX Lower 32-bits of MSR value.
1085 @param EDX Upper 32-bits of MSR value.
1087 <b>Example usage</b>
1091 Msr = AsmReadMsr64 (MSR_CORE2_EMON_L3_CTR_CTL0);
1092 AsmWriteMsr64 (MSR_CORE2_EMON_L3_CTR_CTL0, Msr);
1094 @note MSR_CORE2_EMON_L3_CTR_CTL0 is defined as MSR_EMON_L3_CTR_CTL0 in SDM.
1095 MSR_CORE2_EMON_L3_CTR_CTL1 is defined as MSR_EMON_L3_CTR_CTL1 in SDM.
1096 MSR_CORE2_EMON_L3_CTR_CTL2 is defined as MSR_EMON_L3_CTR_CTL2 in SDM.
1097 MSR_CORE2_EMON_L3_CTR_CTL3 is defined as MSR_EMON_L3_CTR_CTL3 in SDM.
1098 MSR_CORE2_EMON_L3_CTR_CTL4 is defined as MSR_EMON_L3_CTR_CTL4 in SDM.
1099 MSR_CORE2_EMON_L3_CTR_CTL5 is defined as MSR_EMON_L3_CTR_CTL5 in SDM.
1100 MSR_CORE2_EMON_L3_CTR_CTL6 is defined as MSR_EMON_L3_CTR_CTL6 in SDM.
1101 MSR_CORE2_EMON_L3_CTR_CTL7 is defined as MSR_EMON_L3_CTR_CTL7 in SDM.
1104 #define MSR_CORE2_EMON_L3_CTR_CTL0 0x000107CC
1105 #define MSR_CORE2_EMON_L3_CTR_CTL1 0x000107CD
1106 #define MSR_CORE2_EMON_L3_CTR_CTL2 0x000107CE
1107 #define MSR_CORE2_EMON_L3_CTR_CTL3 0x000107CF
1108 #define MSR_CORE2_EMON_L3_CTR_CTL4 0x000107D0
1109 #define MSR_CORE2_EMON_L3_CTR_CTL5 0x000107D1
1110 #define MSR_CORE2_EMON_L3_CTR_CTL6 0x000107D2
1111 #define MSR_CORE2_EMON_L3_CTR_CTL7 0x000107D3
1116 Unique. L3/FSB Common Control Register (R/W) Apply to Intel Xeon processor
1117 7400 series (processor signature 06_1D) only. See Section 17.2.2.
1119 @param ECX MSR_CORE2_EMON_L3_GL_CTL (0x000107D8)
1120 @param EAX Lower 32-bits of MSR value.
1121 @param EDX Upper 32-bits of MSR value.
1123 <b>Example usage</b>
1127 Msr = AsmReadMsr64 (MSR_CORE2_EMON_L3_GL_CTL);
1128 AsmWriteMsr64 (MSR_CORE2_EMON_L3_GL_CTL, Msr);
1130 @note MSR_CORE2_EMON_L3_GL_CTL is defined as MSR_EMON_L3_GL_CTL in SDM.
1132 #define MSR_CORE2_EMON_L3_GL_CTL 0x000107D8