2 MSR Definitions for the Intel(R) Atom(TM) 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 - 2019, Intel Corporation. All rights reserved.<BR>
10 SPDX-License-Identifier: BSD-2-Clause-Patent
12 @par Specification Reference:
13 Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 4,
14 May 2018, Volume 4: Model-Specific-Registers (MSR)
18 #ifndef __ATOM_MSR_H__
19 #define __ATOM_MSR_H__
21 #include <Register/Intel/ArchitecturalMsr.h>
24 Is Intel(R) Atom(TM) Processor Family?
26 @param DisplayFamily Display Family ID
27 @param DisplayModel Display Model ID
29 @retval TRUE Yes, it is.
30 @retval FALSE No, it isn't.
32 #define IS_ATOM_PROCESSOR(DisplayFamily, DisplayModel) \
33 (DisplayFamily == 0x06 && \
35 DisplayModel == 0x1C || \
36 DisplayModel == 0x26 || \
37 DisplayModel == 0x27 || \
38 DisplayModel == 0x35 || \
39 DisplayModel == 0x36 \
44 Shared. Model Specific Platform ID (R).
46 @param ECX MSR_ATOM_PLATFORM_ID (0x00000017)
47 @param EAX Lower 32-bits of MSR value.
48 Described by the type MSR_ATOM_PLATFORM_ID_REGISTER.
49 @param EDX Upper 32-bits of MSR value.
50 Described by the type MSR_ATOM_PLATFORM_ID_REGISTER.
54 MSR_ATOM_PLATFORM_ID_REGISTER Msr;
56 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_PLATFORM_ID);
58 @note MSR_ATOM_PLATFORM_ID is defined as MSR_PLATFORM_ID in SDM.
60 #define MSR_ATOM_PLATFORM_ID 0x00000017
63 MSR information returned for MSR index #MSR_ATOM_PLATFORM_ID
67 /// Individual bit fields
72 /// [Bits 12:8] Maximum Qualified Ratio (R) The maximum allowed bus ratio.
74 UINT32 MaximumQualifiedRatio
: 5;
75 UINT32 Reserved2
: 19;
76 UINT32 Reserved3
: 32;
79 /// All bit fields as a 32-bit value
83 /// All bit fields as a 64-bit value
86 } MSR_ATOM_PLATFORM_ID_REGISTER
;
89 Shared. Processor Hard Power-On Configuration (R/W) Enables and disables
90 processor features; (R) indicates current processor configuration.
92 @param ECX MSR_ATOM_EBL_CR_POWERON (0x0000002A)
93 @param EAX Lower 32-bits of MSR value.
94 Described by the type MSR_ATOM_EBL_CR_POWERON_REGISTER.
95 @param EDX Upper 32-bits of MSR value.
96 Described by the type MSR_ATOM_EBL_CR_POWERON_REGISTER.
100 MSR_ATOM_EBL_CR_POWERON_REGISTER Msr;
102 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_EBL_CR_POWERON);
103 AsmWriteMsr64 (MSR_ATOM_EBL_CR_POWERON, Msr.Uint64);
105 @note MSR_ATOM_EBL_CR_POWERON is defined as MSR_EBL_CR_POWERON in SDM.
107 #define MSR_ATOM_EBL_CR_POWERON 0x0000002A
110 MSR information returned for MSR index #MSR_ATOM_EBL_CR_POWERON
114 /// Individual bit fields
117 UINT32 Reserved1
: 1;
119 /// [Bit 1] Data Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled
122 UINT32 DataErrorCheckingEnable
: 1;
124 /// [Bit 2] Response Error Checking Enable (R/W) 1 = Enabled; 0 = Disabled
127 UINT32 ResponseErrorCheckingEnable
: 1;
129 /// [Bit 3] AERR# Drive Enable (R/W) 1 = Enabled; 0 = Disabled Always 0.
131 UINT32 AERR_DriveEnable
: 1;
133 /// [Bit 4] BERR# Enable for initiator bus requests (R/W) 1 = Enabled; 0 =
134 /// Disabled Always 0.
136 UINT32 BERR_Enable
: 1;
137 UINT32 Reserved2
: 1;
138 UINT32 Reserved3
: 1;
140 /// [Bit 7] BINIT# Driver Enable (R/W) 1 = Enabled; 0 = Disabled Always 0.
142 UINT32 BINIT_DriverEnable
: 1;
143 UINT32 Reserved4
: 1;
145 /// [Bit 9] Execute BIST (R/O) 1 = Enabled; 0 = Disabled.
147 UINT32 ExecuteBIST
: 1;
149 /// [Bit 10] AERR# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled
152 UINT32 AERR_ObservationEnabled
: 1;
153 UINT32 Reserved5
: 1;
155 /// [Bit 12] BINIT# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled
158 UINT32 BINIT_ObservationEnabled
: 1;
159 UINT32 Reserved6
: 1;
161 /// [Bit 14] 1 MByte Power on Reset Vector (R/O) 1 = 1 MByte; 0 = 4 GBytes.
163 UINT32 ResetVector
: 1;
164 UINT32 Reserved7
: 1;
166 /// [Bits 17:16] APIC Cluster ID (R/O) Always 00B.
168 UINT32 APICClusterID
: 2;
169 UINT32 Reserved8
: 2;
171 /// [Bits 21:20] Symmetric Arbitration ID (R/O) Always 00B.
173 UINT32 SymmetricArbitrationID
: 2;
175 /// [Bits 26:22] Integer Bus Frequency Ratio (R/O).
177 UINT32 IntegerBusFrequencyRatio
: 5;
178 UINT32 Reserved9
: 5;
179 UINT32 Reserved10
: 32;
182 /// All bit fields as a 32-bit value
186 /// All bit fields as a 64-bit value
189 } MSR_ATOM_EBL_CR_POWERON_REGISTER
;
192 Unique. Last Branch Record n From IP (R/W) One of eight pairs of last branch
193 record registers on the last branch record stack. The From_IP part of the
194 stack contains pointers to the source instruction . See also: - Last Branch
195 Record Stack TOS at 1C9H - Section 17.5.
197 @param ECX MSR_ATOM_LASTBRANCH_n_FROM_IP
198 @param EAX Lower 32-bits of MSR value.
199 @param EDX Upper 32-bits of MSR value.
205 Msr = AsmReadMsr64 (MSR_ATOM_LASTBRANCH_0_FROM_IP);
206 AsmWriteMsr64 (MSR_ATOM_LASTBRANCH_0_FROM_IP, Msr);
208 @note MSR_ATOM_LASTBRANCH_0_FROM_IP is defined as MSR_LASTBRANCH_0_FROM_IP in SDM.
209 MSR_ATOM_LASTBRANCH_1_FROM_IP is defined as MSR_LASTBRANCH_1_FROM_IP in SDM.
210 MSR_ATOM_LASTBRANCH_2_FROM_IP is defined as MSR_LASTBRANCH_2_FROM_IP in SDM.
211 MSR_ATOM_LASTBRANCH_3_FROM_IP is defined as MSR_LASTBRANCH_3_FROM_IP in SDM.
212 MSR_ATOM_LASTBRANCH_4_FROM_IP is defined as MSR_LASTBRANCH_4_FROM_IP in SDM.
213 MSR_ATOM_LASTBRANCH_5_FROM_IP is defined as MSR_LASTBRANCH_5_FROM_IP in SDM.
214 MSR_ATOM_LASTBRANCH_6_FROM_IP is defined as MSR_LASTBRANCH_6_FROM_IP in SDM.
215 MSR_ATOM_LASTBRANCH_7_FROM_IP is defined as MSR_LASTBRANCH_7_FROM_IP in SDM.
218 #define MSR_ATOM_LASTBRANCH_0_FROM_IP 0x00000040
219 #define MSR_ATOM_LASTBRANCH_1_FROM_IP 0x00000041
220 #define MSR_ATOM_LASTBRANCH_2_FROM_IP 0x00000042
221 #define MSR_ATOM_LASTBRANCH_3_FROM_IP 0x00000043
222 #define MSR_ATOM_LASTBRANCH_4_FROM_IP 0x00000044
223 #define MSR_ATOM_LASTBRANCH_5_FROM_IP 0x00000045
224 #define MSR_ATOM_LASTBRANCH_6_FROM_IP 0x00000046
225 #define MSR_ATOM_LASTBRANCH_7_FROM_IP 0x00000047
229 Unique. Last Branch Record n To IP (R/W) One of eight pairs of last branch
230 record registers on the last branch record stack. The To_IP part of the
231 stack contains pointers to the destination instruction.
233 @param ECX MSR_ATOM_LASTBRANCH_n_TO_IP
234 @param EAX Lower 32-bits of MSR value.
235 @param EDX Upper 32-bits of MSR value.
241 Msr = AsmReadMsr64 (MSR_ATOM_LASTBRANCH_0_TO_IP);
242 AsmWriteMsr64 (MSR_ATOM_LASTBRANCH_0_TO_IP, Msr);
244 @note MSR_ATOM_LASTBRANCH_0_TO_IP is defined as MSR_LASTBRANCH_0_TO_IP in SDM.
245 MSR_ATOM_LASTBRANCH_1_TO_IP is defined as MSR_LASTBRANCH_1_TO_IP in SDM.
246 MSR_ATOM_LASTBRANCH_2_TO_IP is defined as MSR_LASTBRANCH_2_TO_IP in SDM.
247 MSR_ATOM_LASTBRANCH_3_TO_IP is defined as MSR_LASTBRANCH_3_TO_IP in SDM.
248 MSR_ATOM_LASTBRANCH_4_TO_IP is defined as MSR_LASTBRANCH_4_TO_IP in SDM.
249 MSR_ATOM_LASTBRANCH_5_TO_IP is defined as MSR_LASTBRANCH_5_TO_IP in SDM.
250 MSR_ATOM_LASTBRANCH_6_TO_IP is defined as MSR_LASTBRANCH_6_TO_IP in SDM.
251 MSR_ATOM_LASTBRANCH_7_TO_IP is defined as MSR_LASTBRANCH_7_TO_IP in SDM.
254 #define MSR_ATOM_LASTBRANCH_0_TO_IP 0x00000060
255 #define MSR_ATOM_LASTBRANCH_1_TO_IP 0x00000061
256 #define MSR_ATOM_LASTBRANCH_2_TO_IP 0x00000062
257 #define MSR_ATOM_LASTBRANCH_3_TO_IP 0x00000063
258 #define MSR_ATOM_LASTBRANCH_4_TO_IP 0x00000064
259 #define MSR_ATOM_LASTBRANCH_5_TO_IP 0x00000065
260 #define MSR_ATOM_LASTBRANCH_6_TO_IP 0x00000066
261 #define MSR_ATOM_LASTBRANCH_7_TO_IP 0x00000067
265 Shared. Scalable Bus Speed(RO) This field indicates the intended scalable
266 bus clock speed for processors based on Intel Atom microarchitecture:.
268 @param ECX MSR_ATOM_FSB_FREQ (0x000000CD)
269 @param EAX Lower 32-bits of MSR value.
270 Described by the type MSR_ATOM_FSB_FREQ_REGISTER.
271 @param EDX Upper 32-bits of MSR value.
272 Described by the type MSR_ATOM_FSB_FREQ_REGISTER.
276 MSR_ATOM_FSB_FREQ_REGISTER Msr;
278 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_FSB_FREQ);
280 @note MSR_ATOM_FSB_FREQ is defined as MSR_FSB_FREQ in SDM.
282 #define MSR_ATOM_FSB_FREQ 0x000000CD
285 MSR information returned for MSR index #MSR_ATOM_FSB_FREQ
289 /// Individual bit fields
293 /// [Bits 2:0] - Scalable Bus Speed
295 /// Atom Processor Family
296 /// ---------------------
297 /// 111B: 083 MHz (FSB 333)
298 /// 101B: 100 MHz (FSB 400)
299 /// 001B: 133 MHz (FSB 533)
300 /// 011B: 167 MHz (FSB 667)
302 /// 133.33 MHz should be utilized if performing calculation with
303 /// System Bus Speed when encoding is 001B.
304 /// 166.67 MHz should be utilized if performing calculation with
305 /// System Bus Speed when
306 /// encoding is 011B.
308 UINT32 ScalableBusSpeed
: 3;
309 UINT32 Reserved1
: 29;
310 UINT32 Reserved2
: 32;
313 /// All bit fields as a 32-bit value
317 /// All bit fields as a 64-bit value
320 } MSR_ATOM_FSB_FREQ_REGISTER
;
325 @param ECX MSR_ATOM_BBL_CR_CTL3 (0x0000011E)
326 @param EAX Lower 32-bits of MSR value.
327 Described by the type MSR_ATOM_BBL_CR_CTL3_REGISTER.
328 @param EDX Upper 32-bits of MSR value.
329 Described by the type MSR_ATOM_BBL_CR_CTL3_REGISTER.
333 MSR_ATOM_BBL_CR_CTL3_REGISTER Msr;
335 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_BBL_CR_CTL3);
336 AsmWriteMsr64 (MSR_ATOM_BBL_CR_CTL3, Msr.Uint64);
338 @note MSR_ATOM_BBL_CR_CTL3 is defined as MSR_BBL_CR_CTL3 in SDM.
340 #define MSR_ATOM_BBL_CR_CTL3 0x0000011E
343 MSR information returned for MSR index #MSR_ATOM_BBL_CR_CTL3
347 /// Individual bit fields
351 /// [Bit 0] L2 Hardware Enabled (RO) 1 = If the L2 is hardware-enabled 0 =
352 /// Indicates if the L2 is hardware-disabled.
354 UINT32 L2HardwareEnabled
: 1;
355 UINT32 Reserved1
: 7;
357 /// [Bit 8] L2 Enabled. (R/W) 1 = L2 cache has been initialized 0 =
358 /// Disabled (default) Until this bit is set the processor will not
359 /// respond to the WBINVD instruction or the assertion of the FLUSH# input.
361 UINT32 L2Enabled
: 1;
362 UINT32 Reserved2
: 14;
364 /// [Bit 23] L2 Not Present (RO) 1. = L2 Present 2. = L2 Not Present.
366 UINT32 L2NotPresent
: 1;
367 UINT32 Reserved3
: 8;
368 UINT32 Reserved4
: 32;
371 /// All bit fields as a 32-bit value
375 /// All bit fields as a 64-bit value
378 } MSR_ATOM_BBL_CR_CTL3_REGISTER
;
383 @param ECX MSR_ATOM_PERF_STATUS (0x00000198)
384 @param EAX Lower 32-bits of MSR value.
385 Described by the type MSR_ATOM_PERF_STATUS_REGISTER.
386 @param EDX Upper 32-bits of MSR value.
387 Described by the type MSR_ATOM_PERF_STATUS_REGISTER.
391 MSR_ATOM_PERF_STATUS_REGISTER Msr;
393 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_PERF_STATUS);
394 AsmWriteMsr64 (MSR_ATOM_PERF_STATUS, Msr.Uint64);
396 @note MSR_ATOM_PERF_STATUS is defined as MSR_PERF_STATUS in SDM.
398 #define MSR_ATOM_PERF_STATUS 0x00000198
401 MSR information returned for MSR index #MSR_ATOM_PERF_STATUS
405 /// Individual bit fields
409 /// [Bits 15:0] Current Performance State Value.
411 UINT32 CurrentPerformanceStateValue
: 16;
412 UINT32 Reserved1
: 16;
413 UINT32 Reserved2
: 8;
415 /// [Bits 44:40] Maximum Bus Ratio (R/O) Indicates maximum bus ratio
416 /// configured for the processor.
418 UINT32 MaximumBusRatio
: 5;
419 UINT32 Reserved3
: 19;
422 /// All bit fields as a 64-bit value
425 } MSR_ATOM_PERF_STATUS_REGISTER
;
430 @param ECX MSR_ATOM_THERM2_CTL (0x0000019D)
431 @param EAX Lower 32-bits of MSR value.
432 Described by the type MSR_ATOM_THERM2_CTL_REGISTER.
433 @param EDX Upper 32-bits of MSR value.
434 Described by the type MSR_ATOM_THERM2_CTL_REGISTER.
438 MSR_ATOM_THERM2_CTL_REGISTER Msr;
440 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_THERM2_CTL);
441 AsmWriteMsr64 (MSR_ATOM_THERM2_CTL, Msr.Uint64);
443 @note MSR_ATOM_THERM2_CTL is defined as MSR_THERM2_CTL in SDM.
445 #define MSR_ATOM_THERM2_CTL 0x0000019D
448 MSR information returned for MSR index #MSR_ATOM_THERM2_CTL
452 /// Individual bit fields
455 UINT32 Reserved1
: 16;
457 /// [Bit 16] TM_SELECT (R/W) Mode of automatic thermal monitor: 1. =
458 /// Thermal Monitor 1 (thermally-initiated on-die modulation of the
459 /// stop-clock duty cycle) 2. = Thermal Monitor 2 (thermally-initiated
460 /// frequency transitions) If bit 3 of the IA32_MISC_ENABLE register is
461 /// cleared, TM_SELECT has no effect. Neither TM1 nor TM2 are enabled.
463 UINT32 TM_SELECT
: 1;
464 UINT32 Reserved2
: 15;
465 UINT32 Reserved3
: 32;
468 /// All bit fields as a 32-bit value
472 /// All bit fields as a 64-bit value
475 } MSR_ATOM_THERM2_CTL_REGISTER
;
478 Unique. Enable Misc. Processor Features (R/W) Allows a variety of processor
479 functions to be enabled and disabled.
481 @param ECX MSR_ATOM_IA32_MISC_ENABLE (0x000001A0)
482 @param EAX Lower 32-bits of MSR value.
483 Described by the type MSR_ATOM_IA32_MISC_ENABLE_REGISTER.
484 @param EDX Upper 32-bits of MSR value.
485 Described by the type MSR_ATOM_IA32_MISC_ENABLE_REGISTER.
489 MSR_ATOM_IA32_MISC_ENABLE_REGISTER Msr;
491 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_IA32_MISC_ENABLE);
492 AsmWriteMsr64 (MSR_ATOM_IA32_MISC_ENABLE, Msr.Uint64);
494 @note MSR_ATOM_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.
496 #define MSR_ATOM_IA32_MISC_ENABLE 0x000001A0
499 MSR information returned for MSR index #MSR_ATOM_IA32_MISC_ENABLE
503 /// Individual bit fields
507 /// [Bit 0] Fast-Strings Enable See Table 2-2.
509 UINT32 FastStrings
: 1;
510 UINT32 Reserved1
: 2;
512 /// [Bit 3] Unique. Automatic Thermal Control Circuit Enable (R/W) See
513 /// Table 2-2. Default value is 0.
515 UINT32 AutomaticThermalControlCircuit
: 1;
516 UINT32 Reserved2
: 3;
518 /// [Bit 7] Shared. Performance Monitoring Available (R) See Table 2-2.
520 UINT32 PerformanceMonitoring
: 1;
521 UINT32 Reserved3
: 1;
522 UINT32 Reserved4
: 1;
524 /// [Bit 10] Shared. FERR# Multiplexing Enable (R/W) 1 = FERR# asserted by
525 /// the processor to indicate a pending break event within the processor 0
526 /// = Indicates compatible FERR# signaling behavior This bit must be set
527 /// to 1 to support XAPIC interrupt model usage.
531 /// [Bit 11] Shared. Branch Trace Storage Unavailable (RO) See Table 2-2.
535 /// [Bit 12] Shared. Processor Event Based Sampling Unavailable (RO) See
540 /// [Bit 13] Shared. TM2 Enable (R/W) When this bit is set (1) and the
541 /// thermal sensor indicates that the die temperature is at the
542 /// pre-determined threshold, the Thermal Monitor 2 mechanism is engaged.
543 /// TM2 will reduce the bus to core ratio and voltage according to the
544 /// value last written to MSR_THERM2_CTL bits 15:0.
545 /// When this bit is clear (0, default), the processor does not change
546 /// the VID signals or the bus to core ratio when the processor enters a
547 /// thermally managed state. The BIOS must enable this feature if the
548 /// TM2 feature flag (CPUID.1:ECX[8]) is set; if the TM2 feature flag is
549 /// not set, this feature is not supported and BIOS must not alter the
550 /// contents of the TM2 bit location. The processor is operating out of
551 /// specification if both this bit and the TM1 bit are set to 0.
554 UINT32 Reserved5
: 2;
556 /// [Bit 16] Shared. Enhanced Intel SpeedStep Technology Enable (R/W) See
560 UINT32 Reserved6
: 1;
562 /// [Bit 18] Shared. ENABLE MONITOR FSM (R/W) See Table 2-2.
565 UINT32 Reserved7
: 1;
567 /// [Bit 20] Shared. Enhanced Intel SpeedStep Technology Select Lock
568 /// (R/WO) When set, this bit causes the following bits to become
569 /// read-only: - Enhanced Intel SpeedStep Technology Select Lock (this
570 /// bit), - Enhanced Intel SpeedStep Technology Enable bit. The bit must
571 /// be set before an Enhanced Intel SpeedStep Technology transition is
572 /// requested. This bit is cleared on reset.
575 UINT32 Reserved8
: 1;
577 /// [Bit 22] Unique. Limit CPUID Maxval (R/W) See Table 2-2.
579 UINT32 LimitCpuidMaxval
: 1;
581 /// [Bit 23] Shared. xTPR Message Disable (R/W) See Table 2-2.
583 UINT32 xTPR_Message_Disable
: 1;
584 UINT32 Reserved9
: 8;
585 UINT32 Reserved10
: 2;
587 /// [Bit 34] Unique. XD Bit Disable (R/W) See Table 2-2.
590 UINT32 Reserved11
: 29;
593 /// All bit fields as a 64-bit value
596 } MSR_ATOM_IA32_MISC_ENABLE_REGISTER
;
599 Unique. Last Branch Record Stack TOS (R/W) Contains an index (bits 0-2)
600 that points to the MSR containing the most recent branch record. See
601 MSR_LASTBRANCH_0_FROM_IP (at 40H).
603 @param ECX MSR_ATOM_LASTBRANCH_TOS (0x000001C9)
604 @param EAX Lower 32-bits of MSR value.
605 @param EDX Upper 32-bits of MSR value.
611 Msr = AsmReadMsr64 (MSR_ATOM_LASTBRANCH_TOS);
612 AsmWriteMsr64 (MSR_ATOM_LASTBRANCH_TOS, Msr);
614 @note MSR_ATOM_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.
616 #define MSR_ATOM_LASTBRANCH_TOS 0x000001C9
619 Unique. Last Exception Record From Linear IP (R) Contains a pointer to the
620 last branch instruction that the processor executed prior to the last
621 exception that was generated or the last interrupt that was handled.
623 @param ECX MSR_ATOM_LER_FROM_LIP (0x000001DD)
624 @param EAX Lower 32-bits of MSR value.
625 @param EDX Upper 32-bits of MSR value.
631 Msr = AsmReadMsr64 (MSR_ATOM_LER_FROM_LIP);
633 @note MSR_ATOM_LER_FROM_LIP is defined as MSR_LER_FROM_LIP in SDM.
635 #define MSR_ATOM_LER_FROM_LIP 0x000001DD
638 Unique. Last Exception Record To Linear IP (R) This area contains a pointer
639 to the target of the last branch instruction that the processor executed
640 prior to the last exception that was generated or the last interrupt that
643 @param ECX MSR_ATOM_LER_TO_LIP (0x000001DE)
644 @param EAX Lower 32-bits of MSR value.
645 @param EDX Upper 32-bits of MSR value.
651 Msr = AsmReadMsr64 (MSR_ATOM_LER_TO_LIP);
653 @note MSR_ATOM_LER_TO_LIP is defined as MSR_LER_TO_LIP in SDM.
655 #define MSR_ATOM_LER_TO_LIP 0x000001DE
658 Unique. See Table 2-2. See Section 18.6.2.4, "Processor Event Based Sampling
661 @param ECX MSR_ATOM_PEBS_ENABLE (0x000003F1)
662 @param EAX Lower 32-bits of MSR value.
663 Described by the type MSR_ATOM_PEBS_ENABLE_REGISTER.
664 @param EDX Upper 32-bits of MSR value.
665 Described by the type MSR_ATOM_PEBS_ENABLE_REGISTER.
669 MSR_ATOM_PEBS_ENABLE_REGISTER Msr;
671 Msr.Uint64 = AsmReadMsr64 (MSR_ATOM_PEBS_ENABLE);
672 AsmWriteMsr64 (MSR_ATOM_PEBS_ENABLE, Msr.Uint64);
674 @note MSR_ATOM_PEBS_ENABLE is defined as MSR_PEBS_ENABLE in SDM.
676 #define MSR_ATOM_PEBS_ENABLE 0x000003F1
679 MSR information returned for MSR index #MSR_ATOM_PEBS_ENABLE
683 /// Individual bit fields
687 /// [Bit 0] Enable PEBS on IA32_PMC0. (R/W).
690 UINT32 Reserved1
: 31;
691 UINT32 Reserved2
: 32;
694 /// All bit fields as a 32-bit value
698 /// All bit fields as a 64-bit value
701 } MSR_ATOM_PEBS_ENABLE_REGISTER
;
704 Package. Package C2 Residency Note: C-state values are processor specific
705 C-state code names, unrelated to MWAIT extension C-state parameters or ACPI
706 C-States. Package. Package C2 Residency Counter. (R/O) Time that this
707 package is in processor-specific C2 states since last reset. Counts at 1 Mhz
710 @param ECX MSR_ATOM_PKG_C2_RESIDENCY (0x000003F8)
711 @param EAX Lower 32-bits of MSR value.
712 @param EDX Upper 32-bits of MSR value.
718 Msr = AsmReadMsr64 (MSR_ATOM_PKG_C2_RESIDENCY);
719 AsmWriteMsr64 (MSR_ATOM_PKG_C2_RESIDENCY, Msr);
721 @note MSR_ATOM_PKG_C2_RESIDENCY is defined as MSR_PKG_C2_RESIDENCY in SDM.
723 #define MSR_ATOM_PKG_C2_RESIDENCY 0x000003F8
726 Package. Package C4 Residency Note: C-state values are processor specific
727 C-state code names, unrelated to MWAIT extension C-state parameters or ACPI
728 C-States. Package. Package C4 Residency Counter. (R/O) Time that this
729 package is in processor-specific C4 states since last reset. Counts at 1 Mhz
732 @param ECX MSR_ATOM_PKG_C4_RESIDENCY (0x000003F9)
733 @param EAX Lower 32-bits of MSR value.
734 @param EDX Upper 32-bits of MSR value.
740 Msr = AsmReadMsr64 (MSR_ATOM_PKG_C4_RESIDENCY);
741 AsmWriteMsr64 (MSR_ATOM_PKG_C4_RESIDENCY, Msr);
743 @note MSR_ATOM_PKG_C4_RESIDENCY is defined as MSR_PKG_C4_RESIDENCY in SDM.
745 #define MSR_ATOM_PKG_C4_RESIDENCY 0x000003F9
748 Package. Package C6 Residency Note: C-state values are processor specific
749 C-state code names, unrelated to MWAIT extension C-state parameters or ACPI
750 C-States. Package. Package C6 Residency Counter. (R/O) Time that this
751 package is in processor-specific C6 states since last reset. Counts at 1 Mhz
754 @param ECX MSR_ATOM_PKG_C6_RESIDENCY (0x000003FA)
755 @param EAX Lower 32-bits of MSR value.
756 @param EDX Upper 32-bits of MSR value.
762 Msr = AsmReadMsr64 (MSR_ATOM_PKG_C6_RESIDENCY);
763 AsmWriteMsr64 (MSR_ATOM_PKG_C6_RESIDENCY, Msr);
765 @note MSR_ATOM_PKG_C6_RESIDENCY is defined as MSR_PKG_C6_RESIDENCY in SDM.
767 #define MSR_ATOM_PKG_C6_RESIDENCY 0x000003FA