Software Optimization Guide for AMD64 Processors | 25112 Rev. 3.06 September 2005 |
•
•One
•One
•
•
•Cache
B.2 Programming Details
The following steps are required for programming
1.Verify the presence of an AMD Athlon™ 64 or AMD Opteron processor by using the CPUID instruction to check for the instruction family code and vendor identification of the processor. Standard function 0 on AMD processors returns a vendor identification string of “AuthenticAMD” in registers EBX, EDX, and ECX. Standard function 1 returns the processor signature in register EAX, where EAX[11:8] contains the instruction family code. For the AMD Athlon 64 and AMD Opteron processors, the instruction family code is Fh.
2.Verify the presence of the MTRRs and the PAT extensions. The presence of the MTRRs is
indicated by bit 12 and the presence of the PAT extensions is indicated by bit 16 of the extended features bits returned in the EDX register by CPUID function 8000_0001h. See the CPUID Specification, order# 25481, for more details on the CPUID instruction.
3.Enable
B.3 Write-combining Operations
To improve system performance, the AMD Athlon 64 and AMD Opteron processors aggressively combine multiple
•WC memory type writes can be combined in any order up to a full
•WT memory type writes can only be combined up to a fully aligned quadword in the
264 | Implementation of | Appendix B |