






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







class19.ppt
a
c
h
e
kernel virtual memory
Memory mapped region
forshared libraries
runtime heap (via malloc)
program text (.text)
initialized data (.data)
uninitialized data (.bss)
stack
forbidden
%esp
memory invisible to
user code
the “brk” ptr
Address Translation 0
(e.g., read/only
library code)
virtual page number (VPN) page offset
virtual address
physical page number (PPN) page offset
physical address
m–1 pp–1 0
n–1 pp–1 0
page table base register
if valid=
then page
not in memory
valid accessphysical page number (PPN)
VPN acts
as
table index
virtual page number (VPN) page offset
virtual address
physical page number (PPN) page offset
physical address
m–1 pp–1 0
n–1 pp–1 0
page table base register
if valid=
then page
not in memory
valid accessphysical page number (PPN)
VPN acts
as
table index
virtual page number (VPN) page offset
virtual address
physical page number (PPN) page offset
physical address
m–1 pp–1 0
n–1 pp–1 0
page table base register
if valid=
then page
not in memory
valid
accessphysical page number (PPN)
VPN acts
as
table index
virtual page number (VPN) page offset
virtual address
physical page number (PPN) page offset
physical address
m–1 pp–1 0
n–1 pp–1 0
page table base register
if valid=
then page
not in memory
valid
accessphysical page number (PPN)
VPN acts
as
table index
virtual page number (VPN) page offset
virtual address
physical page number (PPN) page offset
physical address
m–1 pp–1 0
n–1 pp–1 0
page table base register
if valid=
then page
not in memory
valid accessphysical page number (PPN)
VPN acts
as
table index
virtual page number (VPN) page offset
virtual address
physical page number (PPN) page offset
physical address
m–1 pp–1 0
n–1 pp–1 0
page table base register
if valid=
then page
not in memory
valid accessphysical page number (PPN)
VPN acts
as
table index
virtual page number page offset virtual address
physical address
n–1 pp–1 0
valid tagphysical page number
valid tag data
=
tag byte offset
index
=
12
20