Skip to content

OSlings Practice 42k-44k, Problem 2: Traps

OSlings Practice 42k-44k, problem 2 of 3 · Length: 5:23 · Exercise: 43k_traps (Week 11) · Problems: 42k-44k (PDF) · Answer key: Solutions (PDF)

Two parts, worked on the set's pages 3 and 4: (a) for an ebreak at 0x8000_0568, sepc when kerneltrap starts and when it returns, the address the CPU jumps to, and where sret resumes; (b) what happens after sret when kerneltrap counts the breakpoint but never advances sepc, and why. The answer key's handwriting is written onto the page as each step is worked.

Download the video (MP4, 8 MB) · Captions (WebVTT) · All three problems