EIE3343 Memory Management - Segmentation and Paging
EIE3343 Memory Management - Segmentation and Paging
Semester 2, 2023/2024
Introduction
• This chapter
− provides an overview of the Intel family of
microprocessors.
− presents the microprocessor as a programmable
device by first looking at
• (i) its internal programming model and then at
• (ii) how it addresses its memory space.
Logical
Address Different size!
Memory Management – Segmentation and Paging 14
The Hong Kong Polytechnic University
Topics
• Memory Addressing – Real Mode
• Memory Addressing – Protected Mode
• Segmentation Mechanism
• Paging Mechanism
Selector TI RPL
13 bits 1 bit 2bits
LDT
point to the
segment
carrying the
Size of GDT
Select a LDT
selecter
selector descriptor in descriptor n
GDT
GDT
Define
the size Starting addr of GDT
Segment
registers:
CS, DS, ES, SS,
FS, GS, etc.
4K bytes
::: :::
4K bytes
1K entries
: 4 bytes/entry :
Template format of a table entry
pages
page tables
4K bytes
::: :::
4K bytes
Key data ::::
1 Table (P.D./P.T.) : : page directory
4K bytes
1K entries :
4 bytes/entry :::
:::
::: :::
4K bytes :::
: :::
::