Page
Chapter Hardware Implementation
Hardware Implementation
Clock
Data and Address Buses
Bus Cycle Definition
Bus Cycle Control
Non-pipelined Bus Cycle Timing
Bus Cycles with Pipelined Addresses
Coprocessor Control
Dynamic Bus Sizing
Processor Status and Control
Mixed 16- and 32-bit Accesses
Chapter Data Sheet
Page
80386
Update Notice
Table of Contents
Segment Descriptor Cache
Descriptor Tables Introduction
Interrupt Descriptor Table
Privilege Validation
Functional Data
Initiating and Maintaining Pipelined Address
Package Thermal Specification
3.4
Pipelined Address with Dynamic Data Bus Sizing
Base Architecture Introduction
Register Overview
Instruction Pointer
Register Descriptions
General Purpose Registers
Flags Register
TSS
Other Segment Physical Base Address Segment Limit
Segment Registers
Segment Registers Descriptor Registers Loaded Automatically
Flects the current state of the ET bit
Segment Descriptor Registers
Control Registers
MSW
System Address Registers
TS Task Switched, bit
Fault Linear Address Register CR2
Directory Base Register CR3
Compatibility
Register Accessibility
Debug and Test Registers
Gdtr
Instruction Set Overview
Iopl
Idtr
2a Data Transfer
2 80386 Instructions
2dLogical Instructions
2b Arithmetic Instructions
2g High Level Language Instructions
2e Bit Manipulation Instructions
2f. Program Control Instructions
2h Protection Model
3 32-Bit Memory Addressing Modes
Addressing Modes Overview
Register and Immediate Modes
Addressing Mode Calculations
Differences Between 16 and 32 Bit Addresses
Base Register BX,BP Index Register SI,DI Scale Factor
Displacement
Data Types
None
LilliililillIl
Sign ED rrrrrrrrl
Address Spaces
Memory Organization
Introduction
I/O Space
Segment Register Usage
Interrupt Processing
Interrupts
Interrupts and Ecep~ions
Maskable Interrupt
Non-Maskable Interrupt
Software Interrupts
Interrupt and Exception Priorities
NMI 2.INTR
Instruction Restart
Reset and Initialization
Double Fault
Self-Test
TLB Testing
Testability
Debugging Support
Debug Registers
Breakpoint Instruction
Single-Step Trap
DR3
DR1
DR2
DR4
Encoding Causing Breakpoint
Usage
Real Mode Architecture Real Mode Introduction
Debug Status Register DR6
Xchg
SET/RESET/COMPLEMENT
Memory Addressing
ADD, OR, ADC, SBB
Shutdown and Halt
Reserved Locations
Intierrupts
Protected Mode Addressing
Addressing Mechanism
Descriptor Tables
Segmentation Introduction
Terminology
Descriptor Tables Introduction
Address
Descriptors
Byte
Segment Base 15 Segment Limit 15
Dptm typ , data gm,nt
System Descriptor Formats
Word
Selector
Offset 15
Offset 31
Selector Fields
Differences Between 386 and 286 Descriptors
Segment Base 15
Segment Descriptor Cache
Nil R~L
~~~~~~~EL~~E~ ~A~~ ~I~I! ttl
~!~~~~E L~~E~~~s~ I~I! ~ J
~~?~~~~EL~~E~B~~E ~I~I~ tJ1
Privilege Levels
Protection Concepts
Rules of Privilege
Privilege Level Transfers
RET,IRET
GOT/LOT
Call
CALL, JMP
80386
Task Switching
Call Ga~es
Initialization and Transition to Protected Mode
Infef
Systems
Tools for Building Protected
Paging
Paging Concepts
Descriptor Base Register
Paging Organization
Mechanism
Directory
Tables
Level Protection R/W, U/S Bits
Frame Address 31 Reserved
DIRECTORY/TABLE Entries
Translation Lookaside Buffer
Paging Operation
Virtual 8086 Environment
Paging In Virtual Mode
Access Type
Executing 8086 Programs
Protection and 1/0 Permission Bitmap
24. Virtual 8086 Environment Memory Management
Interrupt Handling
Entering and Leaving Virtual
Task Switches TO/FROM Virtual 8086 Mode
·25.Virtual 8086 Environment Interrupt and Call Handling
For state saving i.e. push all registers in prolog, pop
Introduction
Clock CLK2
Data Bus do through
Address Bus BEO# through BE3#, A2 through A31
Bus Cycle Definition Signals W/R#, D/C#, MIIO#, LOCK#
Bus Control Signals
Introduction
Bus Arbitration Signals
Coprocessor Interface Signals
Interrupt Signals
Signal Summary
Memory and 1/0 Spaces
BEO#
Memory and 110 Organization
Dynamic Data Bus Sizing
Interfacing with 32- and 16-Bit Memories
Cycles 1 and 1a
Operand Alignment
BEO# BHE# BLE# AD
Li,\~~
P1 1.p2 .p1 1.p2 .p1 1.p2 .p1 1.p2 .p1 1.p2 .p1 1.p2 .p1
Address Pipelining
·9.Fastest Read Cycles with Pipelined Address Timing
FOUR-BANK Interleaved Memory
Address signal A2 selects bank Bit datapath to each bank
TWO-BANK Interleaved Memory
Read and Write Cycles
Introduction
Xxxi Xxxix
NON-PIPELINED Address
Xxxxx Ixxxx
Ixxx
13 80386 Bus States not usIng pipelined address
3.3 NON·PIPELINED Address with Dynamic Data BUS Sizing
·14Asserting BS16# zero wait states, non·pipelinedaddress
~~~~ DOO¥
Xixxxxx Valid
Xixxxx ,XXXXY
BSI6# XXX XXx XXX X .. IXXXXwOO~ J, XXX XXX1/ \
B516# ~~..tJ.~~~~~~~
BS16 # 44~~~...l-.lI...l Ready # 44~~.lI...l/l
Bus Sizing with Pipelined Address
Acknowledge
~ ,T1-T~-T2PJ ,T1PT2PJ Idle non-pipelined pipelined
Pipelined
IO#, D/c#
Ffi
20 Complete Bus States including pipelined address
Xxixxy ~ /..XIXXY
Xxxxy ~j XDONTCAR~X~ x~ ~X~~lKX~ /..XXXX
Xxxxx IXXXXIXXXXI.. /..DXXXIXXX ~ Xxxxiy
~ -XXIXXY
Interrupt Acknowledge Inta Cycles
~--cp--- ----- ----- ----- ----- ~
Halt Indication Cycle
23.Halt Indication Cycle
Shutdown Indication Cycle
24. Shutdown Indication Cycle
Other Functional Descriptions
Reset During Hold Acknowledge
Bus Activity During and Following Reset
Entering and Exiting Hold Acknowledge