Professional Documents
Culture Documents
Address Translation Mechanism of 80386
Address Translation Mechanism of 80386
MECHANISM OF 80386
Unit 2
PROTECTED MODE ADDRESSING
MECHANISM
• Mandatory if:-
Virtual 8086
Page protection
Page virtual memory
• E.g: LA 4GB mapped to 16MB PA
• Total Pages= 1,048,496 pages in PA
• Page size= 4096 bytes
SEGMENTATION VS PAGING
(20-bit) (12-bit)
(20-bit) (12-bit)
V D U/S R/W Upper 20 bit Linear Address Upper 20-bit Physical Address
TRANSLATION LOOKASIDE
BUFFER(TLB)
• The upper 20 bits of the linear address read from the page table
will be stored in the TLB for future accesses.
• If P = 0 for either PDE or PTE, then the processor will generate
a page fault exception
• This exception is also generated when protection rules are
violated and the CR2 is loaded with the page fault address
Linear Address
Paging Operation
Y
Upper 20 bits
available in TLB (Page is present in physical
memory, set A and D(if
N needed))
N
P=1 in PDE?
space of Program 1
space of Program 2
page tables to ... ...
map the pages
in the linear Page 2 Page 2
virtual address Page 1 Page 1
space onto Page 0 Page 0
main memory
Hard Disk
The operating
Each running Pages that cannot system swaps
program has fit in main memory pages between
its own page are stored on the memory and the
table hard disk hard disk