Skip to content

Practice Exam 2, Problem 5: Sv39 Page Tables

Midterm 1 practice exam 2, problem 5 of 5 · Length: 14:03 · Exercises: 33k_paging (Week 7), with 32k_physical_memory (Week 7) · Answer key: Solutions (PDF)

Worked on pages 19 to 23: (a) splitting a virtual address into its indices, building and decoding a PTE, and table.add(128); (b) the six PTEs that two mappages calls write, a translation by hand, two addresses that were never mapped, and the value of satp; (c) walkaddr, and what a walk that forgets to zero a new table does on a recycled page. The answer key's handwriting is written onto the exam page as each step is worked.

Download the video (MP4, 51 MB) · Captions (WebVTT) · All five problems