AMD AMD-K6-2/450 Design Guide - Page 73

Testing For Extended Functions, Determining the Processor Signature

Page 73 highlights

23913A/0-November 2000 Preliminary Information Embedded AMD-K6™ Processors BIOS Design Guide AMD's definition for subsequent CPUID functions and the registers returned for those functions. Once the software identifies the processor's vendor, it knows the definition for all the functions supplied by the CPUID instruction. By using these functions, the software obtains the processor information needed to properly tune its functionality to the capabilities of the processor. Testing For Extended Functions Software must test for extended functions with function 8000_0000h. The EAX register returns the largest extended function input value defined for the CPUID instruction on the processor. If this value is at least 8000_0001h, extended functions are supported. With one exception, the AMD extended feature flags include all the information provided in the standard feature flags as well as indicators for the additional AMD processor-specific feature enhancements. The duplication of standard feature bits within the extended feature bits can minimize the number of function calls required by software. The exception is bit 11, which indicates that the SYSENTER and SYSEXIT instructions are supported in the standard features and that the SYSCALL and SYSRET instructions are supported in the extended features. Determining the Processor Signature Standard function 1 (EAX=1) of the CPUID instruction returns the standard processor signature and feature bits. The standard processor signature is returned in the EAX register and provides information regarding the specific revision (stepping) and model of the processor and the instruction family level supported by the processor. The revision level can be used to determine if the processor supports specific features. However, it is not recommended that the revision level be used in this manner unless this information is not available through the standard or extended feature bits. Embedded AMD Processor Recognition 61

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98

Embedded AMD Processor Recognition
61
23913A/0—November 2000
Embedded AMD-K6™ Processors BIOS Design Guide
Preliminary Information
AMD’s definition for subsequent CPUID functions and the
registers returned for those functions.
Once the software identifies the processor’s vendor, it knows
the definition for all the functions supplied by the CPUID
instruction. By using these functions, the software obtains the
processor information needed to properly tune its functionality
to the capabilities of the processor.
Testing For Extended Functions
Software must test for extended functions with function
8000_0000h. The EAX register returns the largest extended
function input value defined for the CPUID instruction on the
processor. If this value is at least 8000_0001h, extended
functions are supported.
With one exception, the AMD extended feature flags include all
the information provided in the standard feature flags as well
as indicators for the additional AMD processor-specific feature
enhancements. The duplication of standard feature bits within
the extended feature bits can minimize the number of function
calls required by software. The exception is bit 11, which
indicates that the SYSENTER and SYSEXIT instructions are
supported in the standard features and that the SYSCALL and
SYSRET instructions are supported in the extended features.
Determining the Processor Signature
Standard function 1 (EAX=1) of the CPUID instruction returns
the standard processor signature and feature bits. The standard
processor signature is returned in the EAX register and
provides information regarding the specific revision (stepping)
and model of the processor and the instruction family level
supported by the processor. The revision level can be used to
determine if the processor supports specific features. However,
it is not recommended that the revision level be used in this
manner unless this information is not available through the
standard or extended feature bits.