
Contents
iii
21062E/0—June 1997
AMD K86 Family BIOS and Software Tools Developers Guide
Preliminary Information
Contents
1
Introduction
1
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2
CPU Identification Algorithms
3
3
AMD-K5 Processor
5
BIOS Consideration Checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
CPUID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
CPU Speed Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Model-Specific Registers (MSRs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Cache Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
SMM Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
AMD-K5 Processor System Management Mode (SMM) . . . . . . . . . . . 7
Operating Mode and Default Register Values. . . . . . . . . . . . . . . . . . . 7
SMM Initial Register Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
SMM State-Save Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
SMM Revision Identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
SMM Base Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Auto Halt Restart Slot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
I/O Trap Dword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
I/O Trap Restart Slot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Exceptions and Interrupts in SMM . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
AMD-K5 Processor RESET State. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Segment Register Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
State of the AMD-K5 Processor After INIT . . . . . . . . . . . . . . . . . . . . 20
AMD-K5 Processor Test and Debug . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Hardware Configuration Register (HWCR). . . . . . . . . . . . . . . . . . . . 22
Built-In Self-Test (BIST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Normal BIST. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Test Access Port (TAP) BIST . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Output-Float Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26