EasyManua.ls Logo

AMD AMD5K86 - Time Stamp Counter (TSC)

AMD AMD5K86
416 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AMD~
18524B/O-Mar1996
AMD5IJ6
Processor
Technical
Reference
Manual
TABLE
3-7.
Machine-Check
Type
Register
(MCTR)
Fields
Bit
4
3
2
1
0
3.2.3
3.2.4
Mnemonic Description
Function
LOCK Locked Cycle
Set to 1 if
the
processor was asserting LUCK dur-
ing the bus cycle.
MIID
Memory or
I/O
1 = memory cycle, 0 = I/O cycle.
DiC
Data
or
Code
1 = data cycle, 0 = code cycle.
W!R Write or Read 1 = write cycle, 0 =
read
cycle.
The processor sets
the
CHK
bit
to 1 when
both
Valid Machine-
the
MCTR
and
MCAR registers contain valid
CHK
Check Data
information. The processor clears
the
CHK
bit
to
o when software reads
the
MCTR with
the
RDMSR instruction.
Time
Stamp
Counter
(TSC)
With
each
processor
clock
cycle,
the
processor
increments
a 64-
bit
time
stamp
counter
(TSC)
model-specific
register.
The
counter
can
be
written
or
read
using
the
WRMSR
or
RDMSR
instructions
when
the
ECX
register
contains
the
value
lOh
and
CPL
=
O.
The
counter
can
also
be
read
using
the
RDTSC
instruction
(see
Section
3.3.4
on
page
3-34)
but
the
required
privilege
level
for
this
instruction
is
determined
by
the
Time
Stamp
Disable
(TSD)
bit
in
CR4.
With
any
of
these
instruc-
tions,
the
EDX
and
EAX
registers
hold
the
upper
and
lower
double-words
(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
The
TSC
can
be
loaded
with
any
arbitrary
value.
Array
Access
Register
(AAR)
The
Array
Access
Register
(AAR)
contains
pointers
for
testing
the
tag
and
data
arrays
for
the
instruction
cache,
data
cache,
4-
Kbyte
TLB,
and
4-Mbyte TLB.
The
AAR
can
be
written
or
read
with
the
WRMSR
or
RDMSR
instruction
when
the
ECX
regis-
ter
contains
the
value
82h.
For
details
on
the
AAR,
see
Section
7.4
on
page
7-7.
Model-Specific
Registers
(MSRs)
3-27

Table of Contents

Related product manuals