]>
Commit | Line | Data |
---|---|---|
83d4e58c MK |
1 | /** @file\r |
2 | MSR Definitions for Pentium M Processors.\r | |
3 | \r | |
4 | Provides defines for Machine Specific Registers(MSR) indexes. Data structures\r | |
5 | are provided for MSRs that contain one or more bit fields. If the MSR value\r | |
6 | returned is a single 32-bit or 64-bit value, then a data structure is not\r | |
7 | provided for that MSR.\r | |
8 | \r | |
ba1a2d11 | 9 | Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r |
0acd8697 | 10 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
83d4e58c MK |
11 | \r |
12 | @par Specification Reference:\r | |
ba1a2d11 ED |
13 | Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 4,\r |
14 | May 2018, Volume 4: Model-Specific-Registers (MSR)\r | |
83d4e58c MK |
15 | \r |
16 | **/\r | |
17 | \r | |
18 | #ifndef __PENTIUM_M_MSR_H__\r | |
19 | #define __PENTIUM_M_MSR_H__\r | |
20 | \r | |
21 | #include <Register/ArchitecturalMsr.h>\r | |
22 | \r | |
f4c982bf JF |
23 | /**\r |
24 | Is Pentium M Processors?\r | |
25 | \r | |
26 | @param DisplayFamily Display Family ID\r | |
27 | @param DisplayModel Display Model ID\r | |
28 | \r | |
29 | @retval TRUE Yes, it is.\r | |
30 | @retval FALSE No, it isn't.\r | |
31 | **/\r | |
32 | #define IS_PENTIUM_M_PROCESSOR(DisplayFamily, DisplayModel) \\r | |
33 | (DisplayFamily == 0x06 && \\r | |
34 | ( \\r | |
35 | DisplayModel == 0x0D \\r | |
36 | ) \\r | |
37 | )\r | |
38 | \r | |
83d4e58c | 39 | /**\r |
ba1a2d11 | 40 | See Section 2.22, "MSRs in Pentium Processors.".\r |
83d4e58c MK |
41 | \r |
42 | @param ECX MSR_PENTIUM_M_P5_MC_ADDR (0x00000000)\r | |
43 | @param EAX Lower 32-bits of MSR value.\r | |
44 | @param EDX Upper 32-bits of MSR value.\r | |
45 | \r | |
46 | <b>Example usage</b>\r | |
47 | @code\r | |
48 | UINT64 Msr;\r | |
49 | \r | |
50 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_P5_MC_ADDR);\r | |
51 | AsmWriteMsr64 (MSR_PENTIUM_M_P5_MC_ADDR, Msr);\r | |
52 | @endcode\r | |
65ee84bd | 53 | @note MSR_PENTIUM_M_P5_MC_ADDR is defined as P5_MC_ADDR in SDM.\r |
83d4e58c MK |
54 | **/\r |
55 | #define MSR_PENTIUM_M_P5_MC_ADDR 0x00000000\r | |
56 | \r | |
57 | \r | |
58 | /**\r | |
ba1a2d11 | 59 | See Section 2.22, "MSRs in Pentium Processors.".\r |
83d4e58c MK |
60 | \r |
61 | @param ECX MSR_PENTIUM_M_P5_MC_TYPE (0x00000001)\r | |
62 | @param EAX Lower 32-bits of MSR value.\r | |
63 | @param EDX Upper 32-bits of MSR value.\r | |
64 | \r | |
65 | <b>Example usage</b>\r | |
66 | @code\r | |
67 | UINT64 Msr;\r | |
68 | \r | |
69 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_P5_MC_TYPE);\r | |
70 | AsmWriteMsr64 (MSR_PENTIUM_M_P5_MC_TYPE, Msr);\r | |
71 | @endcode\r | |
65ee84bd | 72 | @note MSR_PENTIUM_M_P5_MC_TYPE is defined as P5_MC_TYPE in SDM.\r |
83d4e58c MK |
73 | **/\r |
74 | #define MSR_PENTIUM_M_P5_MC_TYPE 0x00000001\r | |
75 | \r | |
76 | \r | |
77 | /**\r | |
78 | Processor Hard Power-On Configuration (R/W) Enables and disables processor\r | |
79 | features. (R) Indicates current processor configuration.\r | |
80 | \r | |
81 | @param ECX MSR_PENTIUM_M_EBL_CR_POWERON (0x0000002A)\r | |
82 | @param EAX Lower 32-bits of MSR value.\r | |
83 | Described by the type MSR_PENTIUM_M_EBL_CR_POWERON_REGISTER.\r | |
84 | @param EDX Upper 32-bits of MSR value.\r | |
85 | Described by the type MSR_PENTIUM_M_EBL_CR_POWERON_REGISTER.\r | |
86 | \r | |
87 | <b>Example usage</b>\r | |
88 | @code\r | |
89 | MSR_PENTIUM_M_EBL_CR_POWERON_REGISTER Msr;\r | |
90 | \r | |
91 | Msr.Uint64 = AsmReadMsr64 (MSR_PENTIUM_M_EBL_CR_POWERON);\r | |
92 | AsmWriteMsr64 (MSR_PENTIUM_M_EBL_CR_POWERON, Msr.Uint64);\r | |
93 | @endcode\r | |
65ee84bd | 94 | @note MSR_PENTIUM_M_EBL_CR_POWERON is defined as MSR_EBL_CR_POWERON in SDM.\r |
83d4e58c MK |
95 | **/\r |
96 | #define MSR_PENTIUM_M_EBL_CR_POWERON 0x0000002A\r | |
97 | \r | |
98 | /**\r | |
99 | MSR information returned for MSR index #MSR_PENTIUM_M_EBL_CR_POWERON\r | |
100 | **/\r | |
101 | typedef union {\r | |
102 | ///\r | |
103 | /// Individual bit fields\r | |
104 | ///\r | |
105 | struct {\r | |
106 | UINT32 Reserved1:1;\r | |
107 | ///\r | |
108 | /// [Bit 1] Data Error Checking Enable (R) 0 = Disabled Always 0 on the\r | |
109 | /// Pentium M processor.\r | |
110 | ///\r | |
111 | UINT32 DataErrorCheckingEnable:1;\r | |
112 | ///\r | |
113 | /// [Bit 2] Response Error Checking Enable (R) 0 = Disabled Always 0 on\r | |
114 | /// the Pentium M processor.\r | |
115 | ///\r | |
116 | UINT32 ResponseErrorCheckingEnable:1;\r | |
117 | ///\r | |
118 | /// [Bit 3] MCERR# Drive Enable (R) 0 = Disabled Always 0 on the Pentium\r | |
119 | /// M processor.\r | |
120 | ///\r | |
121 | UINT32 MCERR_DriveEnable:1;\r | |
122 | ///\r | |
123 | /// [Bit 4] Address Parity Enable (R) 0 = Disabled Always 0 on the Pentium\r | |
124 | /// M processor.\r | |
125 | ///\r | |
126 | UINT32 AddressParityEnable:1;\r | |
127 | UINT32 Reserved2:2;\r | |
128 | ///\r | |
129 | /// [Bit 7] BINIT# Driver Enable (R) 1 = Enabled; 0 = Disabled Always 0 on\r | |
130 | /// the Pentium M processor.\r | |
131 | ///\r | |
132 | UINT32 BINIT_DriverEnable:1;\r | |
133 | ///\r | |
134 | /// [Bit 8] Output Tri-state Enabled (R/O) 1 = Enabled; 0 = Disabled.\r | |
135 | ///\r | |
136 | UINT32 OutputTriStateEnable:1;\r | |
137 | ///\r | |
138 | /// [Bit 9] Execute BIST (R/O) 1 = Enabled; 0 = Disabled.\r | |
139 | ///\r | |
140 | UINT32 ExecuteBIST:1;\r | |
141 | ///\r | |
142 | /// [Bit 10] MCERR# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled\r | |
143 | /// Always 0 on the Pentium M processor.\r | |
144 | ///\r | |
145 | UINT32 MCERR_ObservationEnabled:1;\r | |
146 | UINT32 Reserved3:1;\r | |
147 | ///\r | |
148 | /// [Bit 12] BINIT# Observation Enabled (R/O) 1 = Enabled; 0 = Disabled\r | |
149 | /// Always 0 on the Pentium M processor.\r | |
150 | ///\r | |
151 | UINT32 BINIT_ObservationEnabled:1;\r | |
152 | UINT32 Reserved4:1;\r | |
153 | ///\r | |
154 | /// [Bit 14] 1 MByte Power on Reset Vector (R/O) 1 = 1 MByte; 0 = 4 GBytes\r | |
155 | /// Always 0 on the Pentium M processor.\r | |
156 | ///\r | |
157 | UINT32 ResetVector:1;\r | |
158 | UINT32 Reserved5:1;\r | |
159 | ///\r | |
160 | /// [Bits 17:16] APIC Cluster ID (R/O) Always 00B on the Pentium M\r | |
161 | /// processor.\r | |
162 | ///\r | |
163 | UINT32 APICClusterID:2;\r | |
164 | ///\r | |
165 | /// [Bit 18] System Bus Frequency (R/O) 1. = 100 MHz 2. = Reserved Always\r | |
166 | /// 0 on the Pentium M processor.\r | |
167 | ///\r | |
168 | UINT32 SystemBusFrequency:1;\r | |
169 | UINT32 Reserved6:1;\r | |
170 | ///\r | |
171 | /// [Bits 21:20] Symmetric Arbitration ID (R/O) Always 00B on the Pentium\r | |
172 | /// M processor.\r | |
173 | ///\r | |
174 | UINT32 SymmetricArbitrationID:2;\r | |
175 | ///\r | |
176 | /// [Bits 26:22] Clock Frequency Ratio (R/O).\r | |
177 | ///\r | |
178 | UINT32 ClockFrequencyRatio:5;\r | |
179 | UINT32 Reserved7:5;\r | |
180 | UINT32 Reserved8:32;\r | |
181 | } Bits;\r | |
182 | ///\r | |
183 | /// All bit fields as a 32-bit value\r | |
184 | ///\r | |
185 | UINT32 Uint32;\r | |
186 | ///\r | |
187 | /// All bit fields as a 64-bit value\r | |
188 | ///\r | |
189 | UINT64 Uint64;\r | |
190 | } MSR_PENTIUM_M_EBL_CR_POWERON_REGISTER;\r | |
191 | \r | |
192 | \r | |
193 | /**\r | |
194 | Last Branch Record n (R/W) One of 8 last branch record registers on the last\r | |
195 | branch record stack: bits 31-0 hold the 'from' address and bits 63-32 hold\r | |
196 | the to address. See also: - Last Branch Record Stack TOS at 1C9H - Section\r | |
ba1a2d11 | 197 | 17.15, "Last Branch, Interrupt, and Exception Recording (Pentium M\r |
83d4e58c MK |
198 | Processors)".\r |
199 | \r | |
200 | @param ECX MSR_PENTIUM_M_LASTBRANCH_n\r | |
201 | @param EAX Lower 32-bits of MSR value.\r | |
202 | @param EDX Upper 32-bits of MSR value.\r | |
203 | \r | |
204 | <b>Example usage</b>\r | |
205 | @code\r | |
206 | UINT64 Msr;\r | |
207 | \r | |
208 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_LASTBRANCH_0);\r | |
209 | AsmWriteMsr64 (MSR_PENTIUM_M_LASTBRANCH_0, Msr);\r | |
210 | @endcode\r | |
65ee84bd JF |
211 | @note MSR_PENTIUM_M_LASTBRANCH_0 is defined as MSR_LASTBRANCH_0 in SDM.\r |
212 | MSR_PENTIUM_M_LASTBRANCH_1 is defined as MSR_LASTBRANCH_1 in SDM.\r | |
213 | MSR_PENTIUM_M_LASTBRANCH_2 is defined as MSR_LASTBRANCH_2 in SDM.\r | |
214 | MSR_PENTIUM_M_LASTBRANCH_3 is defined as MSR_LASTBRANCH_3 in SDM.\r | |
215 | MSR_PENTIUM_M_LASTBRANCH_4 is defined as MSR_LASTBRANCH_4 in SDM.\r | |
216 | MSR_PENTIUM_M_LASTBRANCH_5 is defined as MSR_LASTBRANCH_5 in SDM.\r | |
217 | MSR_PENTIUM_M_LASTBRANCH_6 is defined as MSR_LASTBRANCH_6 in SDM.\r | |
218 | MSR_PENTIUM_M_LASTBRANCH_7 is defined as MSR_LASTBRANCH_7 in SDM.\r | |
83d4e58c MK |
219 | @{\r |
220 | **/\r | |
221 | #define MSR_PENTIUM_M_LASTBRANCH_0 0x00000040\r | |
222 | #define MSR_PENTIUM_M_LASTBRANCH_1 0x00000041\r | |
223 | #define MSR_PENTIUM_M_LASTBRANCH_2 0x00000042\r | |
224 | #define MSR_PENTIUM_M_LASTBRANCH_3 0x00000043\r | |
225 | #define MSR_PENTIUM_M_LASTBRANCH_4 0x00000044\r | |
226 | #define MSR_PENTIUM_M_LASTBRANCH_5 0x00000045\r | |
227 | #define MSR_PENTIUM_M_LASTBRANCH_6 0x00000046\r | |
228 | #define MSR_PENTIUM_M_LASTBRANCH_7 0x00000047\r | |
229 | /// @}\r | |
230 | \r | |
231 | \r | |
232 | /**\r | |
233 | Reserved.\r | |
234 | \r | |
235 | @param ECX MSR_PENTIUM_M_BBL_CR_CTL (0x00000119)\r | |
236 | @param EAX Lower 32-bits of MSR value.\r | |
237 | @param EDX Upper 32-bits of MSR value.\r | |
238 | \r | |
239 | <b>Example usage</b>\r | |
240 | @code\r | |
241 | UINT64 Msr;\r | |
242 | \r | |
243 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_BBL_CR_CTL);\r | |
244 | AsmWriteMsr64 (MSR_PENTIUM_M_BBL_CR_CTL, Msr);\r | |
245 | @endcode\r | |
65ee84bd | 246 | @note MSR_PENTIUM_M_BBL_CR_CTL is defined as MSR_BBL_CR_CTL in SDM.\r |
83d4e58c MK |
247 | **/\r |
248 | #define MSR_PENTIUM_M_BBL_CR_CTL 0x00000119\r | |
249 | \r | |
250 | \r | |
251 | /**\r | |
252 | \r | |
253 | \r | |
254 | @param ECX MSR_PENTIUM_M_BBL_CR_CTL3 (0x0000011E)\r | |
255 | @param EAX Lower 32-bits of MSR value.\r | |
256 | Described by the type MSR_PENTIUM_M_BBL_CR_CTL3_REGISTER.\r | |
257 | @param EDX Upper 32-bits of MSR value.\r | |
258 | Described by the type MSR_PENTIUM_M_BBL_CR_CTL3_REGISTER.\r | |
259 | \r | |
260 | <b>Example usage</b>\r | |
261 | @code\r | |
262 | MSR_PENTIUM_M_BBL_CR_CTL3_REGISTER Msr;\r | |
263 | \r | |
264 | Msr.Uint64 = AsmReadMsr64 (MSR_PENTIUM_M_BBL_CR_CTL3);\r | |
265 | AsmWriteMsr64 (MSR_PENTIUM_M_BBL_CR_CTL3, Msr.Uint64);\r | |
266 | @endcode\r | |
65ee84bd | 267 | @note MSR_PENTIUM_M_BBL_CR_CTL3 is defined as MSR_BBL_CR_CTL3 in SDM.\r |
83d4e58c MK |
268 | **/\r |
269 | #define MSR_PENTIUM_M_BBL_CR_CTL3 0x0000011E\r | |
270 | \r | |
271 | /**\r | |
272 | MSR information returned for MSR index #MSR_PENTIUM_M_BBL_CR_CTL3\r | |
273 | **/\r | |
274 | typedef union {\r | |
275 | ///\r | |
276 | /// Individual bit fields\r | |
277 | ///\r | |
278 | struct {\r | |
279 | ///\r | |
280 | /// [Bit 0] L2 Hardware Enabled (RO) 1 = If the L2 is hardware-enabled 0 =\r | |
281 | /// Indicates if the L2 is hardware-disabled.\r | |
282 | ///\r | |
283 | UINT32 L2HardwareEnabled:1;\r | |
284 | UINT32 Reserved1:4;\r | |
285 | ///\r | |
286 | /// [Bit 5] ECC Check Enable (RO) This bit enables ECC checking on the\r | |
287 | /// cache data bus. ECC is always generated on write cycles. 1. = Disabled\r | |
288 | /// (default) 2. = Enabled For the Pentium M processor, ECC checking on\r | |
289 | /// the cache data bus is always enabled.\r | |
290 | ///\r | |
291 | UINT32 ECCCheckEnable:1;\r | |
292 | UINT32 Reserved2:2;\r | |
293 | ///\r | |
294 | /// [Bit 8] L2 Enabled (R/W) 1 = L2 cache has been initialized 0 =\r | |
295 | /// Disabled (default) Until this bit is set the processor will not\r | |
296 | /// respond to the WBINVD instruction or the assertion of the FLUSH# input.\r | |
297 | ///\r | |
298 | UINT32 L2Enabled:1;\r | |
299 | UINT32 Reserved3:14;\r | |
300 | ///\r | |
301 | /// [Bit 23] L2 Not Present (RO) 1. = L2 Present 2. = L2 Not Present.\r | |
302 | ///\r | |
303 | UINT32 L2NotPresent:1;\r | |
304 | UINT32 Reserved4:8;\r | |
305 | UINT32 Reserved5:32;\r | |
306 | } Bits;\r | |
307 | ///\r | |
308 | /// All bit fields as a 32-bit value\r | |
309 | ///\r | |
310 | UINT32 Uint32;\r | |
311 | ///\r | |
312 | /// All bit fields as a 64-bit value\r | |
313 | ///\r | |
314 | UINT64 Uint64;\r | |
315 | } MSR_PENTIUM_M_BBL_CR_CTL3_REGISTER;\r | |
316 | \r | |
317 | \r | |
318 | /**\r | |
319 | \r | |
320 | \r | |
321 | @param ECX MSR_PENTIUM_M_THERM2_CTL (0x0000019D)\r | |
322 | @param EAX Lower 32-bits of MSR value.\r | |
323 | Described by the type MSR_PENTIUM_M_THERM2_CTL_REGISTER.\r | |
324 | @param EDX Upper 32-bits of MSR value.\r | |
325 | Described by the type MSR_PENTIUM_M_THERM2_CTL_REGISTER.\r | |
326 | \r | |
327 | <b>Example usage</b>\r | |
328 | @code\r | |
329 | MSR_PENTIUM_M_THERM2_CTL_REGISTER Msr;\r | |
330 | \r | |
331 | Msr.Uint64 = AsmReadMsr64 (MSR_PENTIUM_M_THERM2_CTL);\r | |
332 | AsmWriteMsr64 (MSR_PENTIUM_M_THERM2_CTL, Msr.Uint64);\r | |
333 | @endcode\r | |
65ee84bd | 334 | @note MSR_PENTIUM_M_THERM2_CTL is defined as MSR_THERM2_CTL in SDM.\r |
83d4e58c MK |
335 | **/\r |
336 | #define MSR_PENTIUM_M_THERM2_CTL 0x0000019D\r | |
337 | \r | |
338 | /**\r | |
339 | MSR information returned for MSR index #MSR_PENTIUM_M_THERM2_CTL\r | |
340 | **/\r | |
341 | typedef union {\r | |
342 | ///\r | |
343 | /// Individual bit fields\r | |
344 | ///\r | |
345 | struct {\r | |
346 | UINT32 Reserved1:16;\r | |
347 | ///\r | |
348 | /// [Bit 16] TM_SELECT (R/W) Mode of automatic thermal monitor: 1. =\r | |
349 | /// Thermal Monitor 1 (thermally-initiated on-die modulation of the\r | |
350 | /// stop-clock duty cycle) 2. = Thermal Monitor 2 (thermally-initiated\r | |
351 | /// frequency transitions) If bit 3 of the IA32_MISC_ENABLE register is\r | |
352 | /// cleared, TM_SELECT has no effect. Neither TM1 nor TM2 will be enabled.\r | |
353 | ///\r | |
354 | UINT32 TM_SELECT:1;\r | |
355 | UINT32 Reserved2:15;\r | |
356 | UINT32 Reserved3:32;\r | |
357 | } Bits;\r | |
358 | ///\r | |
359 | /// All bit fields as a 32-bit value\r | |
360 | ///\r | |
361 | UINT32 Uint32;\r | |
362 | ///\r | |
363 | /// All bit fields as a 64-bit value\r | |
364 | ///\r | |
365 | UINT64 Uint64;\r | |
366 | } MSR_PENTIUM_M_THERM2_CTL_REGISTER;\r | |
367 | \r | |
368 | \r | |
369 | /**\r | |
370 | Enable Miscellaneous Processor Features (R/W) Allows a variety of processor\r | |
371 | functions to be enabled and disabled.\r | |
372 | \r | |
373 | @param ECX MSR_PENTIUM_M_IA32_MISC_ENABLE (0x000001A0)\r | |
374 | @param EAX Lower 32-bits of MSR value.\r | |
375 | Described by the type MSR_PENTIUM_M_IA32_MISC_ENABLE_REGISTER.\r | |
376 | @param EDX Upper 32-bits of MSR value.\r | |
377 | Described by the type MSR_PENTIUM_M_IA32_MISC_ENABLE_REGISTER.\r | |
378 | \r | |
379 | <b>Example usage</b>\r | |
380 | @code\r | |
381 | MSR_PENTIUM_M_IA32_MISC_ENABLE_REGISTER Msr;\r | |
382 | \r | |
383 | Msr.Uint64 = AsmReadMsr64 (MSR_PENTIUM_M_IA32_MISC_ENABLE);\r | |
384 | AsmWriteMsr64 (MSR_PENTIUM_M_IA32_MISC_ENABLE, Msr.Uint64);\r | |
385 | @endcode\r | |
65ee84bd | 386 | @note MSR_PENTIUM_M_IA32_MISC_ENABLE is defined as IA32_MISC_ENABLE in SDM.\r |
83d4e58c MK |
387 | **/\r |
388 | #define MSR_PENTIUM_M_IA32_MISC_ENABLE 0x000001A0\r | |
389 | \r | |
390 | /**\r | |
391 | MSR information returned for MSR index #MSR_PENTIUM_M_IA32_MISC_ENABLE\r | |
392 | **/\r | |
393 | typedef union {\r | |
394 | ///\r | |
395 | /// Individual bit fields\r | |
396 | ///\r | |
397 | struct {\r | |
398 | UINT32 Reserved1:3;\r | |
399 | ///\r | |
400 | /// [Bit 3] Automatic Thermal Control Circuit Enable (R/W) 1 = Setting\r | |
401 | /// this bit enables the thermal control circuit (TCC) portion of the\r | |
402 | /// Intel Thermal Monitor feature. This allows processor clocks to be\r | |
403 | /// automatically modulated based on the processor's thermal sensor\r | |
404 | /// operation. 0 = Disabled (default). The automatic thermal control\r | |
405 | /// circuit enable bit determines if the thermal control circuit (TCC)\r | |
406 | /// will be activated when the processor's internal thermal sensor\r | |
407 | /// determines the processor is about to exceed its maximum operating\r | |
408 | /// temperature. When the TCC is activated and TM1 is enabled, the\r | |
409 | /// processors clocks will be forced to a 50% duty cycle. BIOS must enable\r | |
410 | /// this feature. The bit should not be confused with the on-demand\r | |
411 | /// thermal control circuit enable bit.\r | |
412 | ///\r | |
413 | UINT32 AutomaticThermalControlCircuit:1;\r | |
414 | UINT32 Reserved2:3;\r | |
415 | ///\r | |
416 | /// [Bit 7] Performance Monitoring Available (R) 1 = Performance\r | |
417 | /// monitoring enabled 0 = Performance monitoring disabled.\r | |
418 | ///\r | |
419 | UINT32 PerformanceMonitoring:1;\r | |
420 | UINT32 Reserved3:2;\r | |
421 | ///\r | |
422 | /// [Bit 10] FERR# Multiplexing Enable (R/W) 1 = FERR# asserted by the\r | |
423 | /// processor to indicate a pending break event within the processor 0 =\r | |
424 | /// Indicates compatible FERR# signaling behavior This bit must be set to\r | |
425 | /// 1 to support XAPIC interrupt model usage.\r | |
426 | /// **Branch Trace Storage Unavailable (RO)** 1 = Processor doesn't\r | |
427 | /// support branch trace storage (BTS) 0 = BTS is supported\r | |
428 | ///\r | |
429 | UINT32 FERR:1;\r | |
430 | ///\r | |
431 | /// [Bit 11] Branch Trace Storage Unavailable (RO)\r | |
432 | /// 1 = Processor doesn't support branch trace storage (BTS)\r | |
433 | /// 0 = BTS is supported\r | |
434 | ///\r | |
435 | UINT32 BTS:1;\r | |
436 | ///\r | |
0f16be6d HW |
437 | /// [Bit 12] Processor Event Based Sampling Unavailable (RO) 1 =\r |
438 | /// Processor does not support processor event based sampling (PEBS); 0 =\r | |
439 | /// PEBS is supported. The Pentium M processor does not support PEBS.\r | |
83d4e58c MK |
440 | ///\r |
441 | UINT32 PEBS:1;\r | |
442 | UINT32 Reserved5:3;\r | |
443 | ///\r | |
444 | /// [Bit 16] Enhanced Intel SpeedStep Technology Enable (R/W) 1 =\r | |
445 | /// Enhanced Intel SpeedStep Technology enabled. On the Pentium M\r | |
446 | /// processor, this bit may be configured to be read-only.\r | |
447 | ///\r | |
448 | UINT32 EIST:1;\r | |
449 | UINT32 Reserved6:6;\r | |
450 | ///\r | |
451 | /// [Bit 23] xTPR Message Disable (R/W) When set to 1, xTPR messages are\r | |
452 | /// disabled. xTPR messages are optional messages that allow the processor\r | |
453 | /// to inform the chipset of its priority. The default is processor\r | |
454 | /// specific.\r | |
455 | ///\r | |
456 | UINT32 xTPR_Message_Disable:1;\r | |
457 | UINT32 Reserved7:8;\r | |
458 | UINT32 Reserved8:32;\r | |
459 | } Bits;\r | |
460 | ///\r | |
461 | /// All bit fields as a 32-bit value\r | |
462 | ///\r | |
463 | UINT32 Uint32;\r | |
464 | ///\r | |
465 | /// All bit fields as a 64-bit value\r | |
466 | ///\r | |
467 | UINT64 Uint64;\r | |
468 | } MSR_PENTIUM_M_IA32_MISC_ENABLE_REGISTER;\r | |
469 | \r | |
470 | \r | |
471 | /**\r | |
472 | Last Branch Record Stack TOS (R/W) Contains an index (bits 0-3) that points\r | |
473 | to the MSR containing the most recent branch record. See also: -\r | |
0f16be6d | 474 | MSR_LASTBRANCH_0_FROM_IP (at 40H) - Section 17.13, "Last Branch, Interrupt,\r |
83d4e58c MK |
475 | and Exception Recording (Pentium M Processors)".\r |
476 | \r | |
477 | @param ECX MSR_PENTIUM_M_LASTBRANCH_TOS (0x000001C9)\r | |
478 | @param EAX Lower 32-bits of MSR value.\r | |
479 | @param EDX Upper 32-bits of MSR value.\r | |
480 | \r | |
481 | <b>Example usage</b>\r | |
482 | @code\r | |
483 | UINT64 Msr;\r | |
484 | \r | |
485 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_LASTBRANCH_TOS);\r | |
486 | AsmWriteMsr64 (MSR_PENTIUM_M_LASTBRANCH_TOS, Msr);\r | |
487 | @endcode\r | |
65ee84bd | 488 | @note MSR_PENTIUM_M_LASTBRANCH_TOS is defined as MSR_LASTBRANCH_TOS in SDM.\r |
83d4e58c MK |
489 | **/\r |
490 | #define MSR_PENTIUM_M_LASTBRANCH_TOS 0x000001C9\r | |
491 | \r | |
492 | \r | |
493 | /**\r | |
494 | Debug Control (R/W) Controls how several debug features are used. Bit\r | |
ba1a2d11 | 495 | definitions are discussed in the referenced section. See Section 17.15,\r |
83d4e58c MK |
496 | "Last Branch, Interrupt, and Exception Recording (Pentium M Processors).".\r |
497 | \r | |
498 | @param ECX MSR_PENTIUM_M_DEBUGCTLB (0x000001D9)\r | |
499 | @param EAX Lower 32-bits of MSR value.\r | |
500 | @param EDX Upper 32-bits of MSR value.\r | |
501 | \r | |
502 | <b>Example usage</b>\r | |
503 | @code\r | |
504 | UINT64 Msr;\r | |
505 | \r | |
506 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_DEBUGCTLB);\r | |
507 | AsmWriteMsr64 (MSR_PENTIUM_M_DEBUGCTLB, Msr);\r | |
508 | @endcode\r | |
65ee84bd | 509 | @note MSR_PENTIUM_M_DEBUGCTLB is defined as MSR_DEBUGCTLB in SDM.\r |
83d4e58c MK |
510 | **/\r |
511 | #define MSR_PENTIUM_M_DEBUGCTLB 0x000001D9\r | |
512 | \r | |
513 | \r | |
514 | /**\r | |
515 | Last Exception Record To Linear IP (R) This area contains a pointer to the\r | |
516 | target of the last branch instruction that the processor executed prior to\r | |
517 | the last exception that was generated or the last interrupt that was\r | |
ba1a2d11 ED |
518 | handled. See Section 17.15, "Last Branch, Interrupt, and Exception Recording\r |
519 | (Pentium M Processors)" and Section 17.16.2, "Last Branch and Last Exception\r | |
83d4e58c MK |
520 | MSRs.".\r |
521 | \r | |
522 | @param ECX MSR_PENTIUM_M_LER_TO_LIP (0x000001DD)\r | |
523 | @param EAX Lower 32-bits of MSR value.\r | |
524 | @param EDX Upper 32-bits of MSR value.\r | |
525 | \r | |
526 | <b>Example usage</b>\r | |
527 | @code\r | |
528 | UINT64 Msr;\r | |
529 | \r | |
530 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_LER_TO_LIP);\r | |
531 | @endcode\r | |
65ee84bd | 532 | @note MSR_PENTIUM_M_LER_TO_LIP is defined as MSR_LER_TO_LIP in SDM.\r |
83d4e58c MK |
533 | **/\r |
534 | #define MSR_PENTIUM_M_LER_TO_LIP 0x000001DD\r | |
535 | \r | |
536 | \r | |
537 | /**\r | |
538 | Last Exception Record From Linear IP (R) Contains a pointer to the last\r | |
539 | branch instruction that the processor executed prior to the last exception\r | |
540 | that was generated or the last interrupt that was handled. See Section\r | |
ba1a2d11 ED |
541 | 17.15, "Last Branch, Interrupt, and Exception Recording (Pentium M\r |
542 | Processors)" and Section 17.16.2, "Last Branch and Last Exception MSRs.".\r | |
83d4e58c MK |
543 | \r |
544 | @param ECX MSR_PENTIUM_M_LER_FROM_LIP (0x000001DE)\r | |
545 | @param EAX Lower 32-bits of MSR value.\r | |
546 | @param EDX Upper 32-bits of MSR value.\r | |
547 | \r | |
548 | <b>Example usage</b>\r | |
549 | @code\r | |
550 | UINT64 Msr;\r | |
551 | \r | |
552 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_LER_FROM_LIP);\r | |
553 | @endcode\r | |
65ee84bd | 554 | @note MSR_PENTIUM_M_LER_FROM_LIP is defined as MSR_LER_FROM_LIP in SDM.\r |
83d4e58c MK |
555 | **/\r |
556 | #define MSR_PENTIUM_M_LER_FROM_LIP 0x000001DE\r | |
557 | \r | |
558 | \r | |
559 | /**\r | |
560 | See Section 15.3.2.1, "IA32_MCi_CTL MSRs.".\r | |
561 | \r | |
562 | @param ECX MSR_PENTIUM_M_MC4_CTL (0x0000040C)\r | |
563 | @param EAX Lower 32-bits of MSR value.\r | |
564 | @param EDX Upper 32-bits of MSR value.\r | |
565 | \r | |
566 | <b>Example usage</b>\r | |
567 | @code\r | |
568 | UINT64 Msr;\r | |
569 | \r | |
570 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_MC4_CTL);\r | |
571 | AsmWriteMsr64 (MSR_PENTIUM_M_MC4_CTL, Msr);\r | |
572 | @endcode\r | |
65ee84bd | 573 | @note MSR_PENTIUM_M_MC4_CTL is defined as MSR_MC4_CTL in SDM.\r |
83d4e58c MK |
574 | **/\r |
575 | #define MSR_PENTIUM_M_MC4_CTL 0x0000040C\r | |
576 | \r | |
577 | \r | |
578 | /**\r | |
579 | See Section 15.3.2.2, "IA32_MCi_STATUS MSRS.".\r | |
580 | \r | |
581 | @param ECX MSR_PENTIUM_M_MC4_STATUS (0x0000040D)\r | |
582 | @param EAX Lower 32-bits of MSR value.\r | |
583 | @param EDX Upper 32-bits of MSR value.\r | |
584 | \r | |
585 | <b>Example usage</b>\r | |
586 | @code\r | |
587 | UINT64 Msr;\r | |
588 | \r | |
589 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_MC4_STATUS);\r | |
590 | AsmWriteMsr64 (MSR_PENTIUM_M_MC4_STATUS, Msr);\r | |
591 | @endcode\r | |
65ee84bd | 592 | @note MSR_PENTIUM_M_MC4_STATUS is defined as MSR_MC4_STATUS in SDM.\r |
83d4e58c MK |
593 | **/\r |
594 | #define MSR_PENTIUM_M_MC4_STATUS 0x0000040D\r | |
595 | \r | |
596 | \r | |
597 | /**\r | |
598 | See Section 15.3.2.3, "IA32_MCi_ADDR MSRs." The MSR_MC4_ADDR register is\r | |
599 | either not implemented or contains no address if the ADDRV flag in the\r | |
600 | MSR_MC4_STATUS register is clear. When not implemented in the processor, all\r | |
601 | reads and writes to this MSR will cause a general-protection exception.\r | |
602 | \r | |
603 | @param ECX MSR_PENTIUM_M_MC4_ADDR (0x0000040E)\r | |
604 | @param EAX Lower 32-bits of MSR value.\r | |
605 | @param EDX Upper 32-bits of MSR value.\r | |
606 | \r | |
607 | <b>Example usage</b>\r | |
608 | @code\r | |
609 | UINT64 Msr;\r | |
610 | \r | |
611 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_MC4_ADDR);\r | |
612 | AsmWriteMsr64 (MSR_PENTIUM_M_MC4_ADDR, Msr);\r | |
613 | @endcode\r | |
65ee84bd | 614 | @note MSR_PENTIUM_M_MC4_ADDR is defined as MSR_MC4_ADDR in SDM.\r |
83d4e58c MK |
615 | **/\r |
616 | #define MSR_PENTIUM_M_MC4_ADDR 0x0000040E\r | |
617 | \r | |
618 | \r | |
619 | /**\r | |
620 | See Section 15.3.2.1, "IA32_MCi_CTL MSRs.".\r | |
621 | \r | |
622 | @param ECX MSR_PENTIUM_M_MC3_CTL (0x00000410)\r | |
623 | @param EAX Lower 32-bits of MSR value.\r | |
624 | @param EDX Upper 32-bits of MSR value.\r | |
625 | \r | |
626 | <b>Example usage</b>\r | |
627 | @code\r | |
628 | UINT64 Msr;\r | |
629 | \r | |
630 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_MC3_CTL);\r | |
631 | AsmWriteMsr64 (MSR_PENTIUM_M_MC3_CTL, Msr);\r | |
632 | @endcode\r | |
65ee84bd | 633 | @note MSR_PENTIUM_M_MC3_CTL is defined as MSR_MC3_CTL in SDM.\r |
83d4e58c MK |
634 | **/\r |
635 | #define MSR_PENTIUM_M_MC3_CTL 0x00000410\r | |
636 | \r | |
637 | \r | |
638 | /**\r | |
639 | See Section 15.3.2.2, "IA32_MCi_STATUS MSRS.".\r | |
640 | \r | |
641 | @param ECX MSR_PENTIUM_M_MC3_STATUS (0x00000411)\r | |
642 | @param EAX Lower 32-bits of MSR value.\r | |
643 | @param EDX Upper 32-bits of MSR value.\r | |
644 | \r | |
645 | <b>Example usage</b>\r | |
646 | @code\r | |
647 | UINT64 Msr;\r | |
648 | \r | |
649 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_MC3_STATUS);\r | |
650 | AsmWriteMsr64 (MSR_PENTIUM_M_MC3_STATUS, Msr);\r | |
651 | @endcode\r | |
65ee84bd | 652 | @note MSR_PENTIUM_M_MC3_STATUS is defined as MSR_MC3_STATUS in SDM.\r |
83d4e58c MK |
653 | **/\r |
654 | #define MSR_PENTIUM_M_MC3_STATUS 0x00000411\r | |
655 | \r | |
656 | \r | |
657 | /**\r | |
658 | See Section 15.3.2.3, "IA32_MCi_ADDR MSRs." The MSR_MC3_ADDR register is\r | |
659 | either not implemented or contains no address if the ADDRV flag in the\r | |
660 | MSR_MC3_STATUS register is clear. When not implemented in the processor, all\r | |
661 | reads and writes to this MSR will cause a general-protection exception.\r | |
662 | \r | |
663 | @param ECX MSR_PENTIUM_M_MC3_ADDR (0x00000412)\r | |
664 | @param EAX Lower 32-bits of MSR value.\r | |
665 | @param EDX Upper 32-bits of MSR value.\r | |
666 | \r | |
667 | <b>Example usage</b>\r | |
668 | @code\r | |
669 | UINT64 Msr;\r | |
670 | \r | |
671 | Msr = AsmReadMsr64 (MSR_PENTIUM_M_MC3_ADDR);\r | |
672 | AsmWriteMsr64 (MSR_PENTIUM_M_MC3_ADDR, Msr);\r | |
673 | @endcode\r | |
65ee84bd | 674 | @note MSR_PENTIUM_M_MC3_ADDR is defined as MSR_MC3_ADDR in SDM.\r |
83d4e58c MK |
675 | **/\r |
676 | #define MSR_PENTIUM_M_MC3_ADDR 0x00000412\r | |
677 | \r | |
678 | #endif\r |