Model-Specific Registers (MSRs)
15
21329L/0—December 1999
AMD-K6
Processor BIOS Design
Standard MSRs
This section describes the four standard MSRs that every model
and stepping of the AMD-K6 family of processors support
identically.
Machine-Check
Address Register
(MCAR) and
Machine-Check Type
Register (MCTR)
The processor does not support the generation of a machine
check exception, but does provide a 64-bit Machine Check
Address Register (MCAR) and a 64-bit Machine Check Type
Register (MCTR) for software compatibility. Because the
processor does not support machine check exceptions, the
contents of the MCAR and MCTR are only affected by the
WRMSR instruction and by RESET being sampled asserted
(where all bits in each register are reset to 0).
The processor also provides the Machine Check Exception
(MCE) bit in Control Register 4 (CR4, bit 6) as a read-write bit.
However, the state of this bit has no effect on the operation of
the processor.
Test Register 12
(TR12)
The processor provides the 64-bit Test Register 12 (TR12), but
only the Cache Inhibit (CI) bit (bit 3 of TR12) is supported. All
other bits in TR12 have no effect on the processor’s operation.
The I/O Trap Restart function (bit 9 of TR12) is always enabled
on the AMD-K6.
Time Stamp Counter
(TSC)
With each processor clock cycle, the processor increments a
64-bit time stamp counter (TSC) MSR. The counter can be
written or read using the WRMSR or RDMSR instructions when
the ECX register contains the value 10h and CPL = 0. The
counter can also be read using the RDTSC instruction, but the
required privilege level for this instruction is determined by
the Time Stamp Disable (TSD) bit in CR4. With either of these
instructions, the EDX and EAX registers hold the upper and
lower dwords of the 64-bit value to be written to or read from
the TSC, as follows:
EDX
—Upper 32 bits of TSC
EAX
—Lower 32 bits of TSC
I
I
The TSC can be loaded with any arbitrary value. This feature is
compatible with the Pentium processor.