22007E/0 — November 1999

AMD Athlon™ Processor x86 Code Optimization

not affected by this issue, only the variable range (and MTRR DefType) registers are affected.

Page Attribute Table (PAT)

The Page Attribute Table (PAT) is an extension of the page table entry format, which allows the specification of memory types to regions of physical memory based on the linear address. The PAT provides the same functionality as MTRRs with the flexibility of the page tables. It provides the operating systems and applications to determine the desired memory type for optimal performance. PAT support is detected in the feature flags (bit 16) of the CPUID instruction.

MSR Access

The PAT is located in a 64-bit MSR at location 277h. It is

 

illustrated in Figure 15. Each of the eight PAn fields can contain

 

the memory type encodings as described in Table 12 on

 

page 174. An attempt to write an undefined memory type

 

encoding into the PAT will generate a GP fault.

 

 

31

26

24

18

16

10

8

2

0

PA3

PA2

PA1

PA0

63

58

56

50

48

42

40

34

32

PA7

PA6

PA5

PA4

Reserved

Figure 15. Page Attribute Table (MSR 277h)

Page Attribute Table (PAT)

177

Page 193
Image 193
AMD x86 manual Attribute Table PAT, Attribute Table MSR 277h