L36 - Lecture 36 Mike Clancy, guest lecturer Topics Review...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 November 21, 2007 CS 61C lect 36 1 Lecture 36 • Mike Clancy, guest lecturer • Topics – Review of virtual memory and address translation, with more details November 21, 2007 CS 61C lect 36 2 Review of Monday • MIPS physical memory is managed by the operating system in units called pages . – There are typically pages from several different processes in memory at once. • Any particular program thinks that it’s in memory all at once, and that its text segment is contiguous and so is its data segment. The program is working with virtual addresses . • Virtual addresses are translated by the operating system to physical addresses .
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
November 21, 2007 CS 61C lect 36 3 Page layout in memory Physical Memory (DRAM) 0x20000000 0x00000000 0xFFFFFFFC text0.0 text0.1 data0.0 stack0.0 stack0.1 0x00400000 0x10000000 0x80000000 0x00000000 0xFFFFFFFC Kernel space Program 0 text0.0 text0.1 data0.0 stack0.1 stack0.0 text1.0 data1.0 stack1.0 0x00400000 0x10000000 0x80000000 0x00000000 0xFFFFFFFC Kernel space Program 1 data1.1 text1.0 data1.0 stack1.0 data1.1 Kernel space November 21, 2007 CS 61C lect 36 4 Address translation • OS uses part of the virtual address, the virtual page number (VPN), to access a page table . • It finds the
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

L36 - Lecture 36 Mike Clancy, guest lecturer Topics Review...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online