Skip to content

Step Past the Breakpoint

Exercise: 43k_traps · Fri Nov 6 · Length: 5:32 · Lecture: Week 11 · Re-run or step past · Explainer: Step Past the Breakpoint

A narrated walk through the explainer, for after the Nov 3 lecture and before Friday's session: a trap is the hardware's jump into the kernel; it saves almost nothing, and sret goes back to the address it saved. The video follows the given handoff from machine mode down to supervisor mode, then steps through the test's one breakpoint: what the hardware writes, the given vector's 128-byte frame, the handler, and sret. A broken case follows, sepc left where it was, with what the test printed in a real run. The video ends on where sret resumes, what reading and writing a control register does to its bits, and the test's two checks. It shows no solution code: only the trap registers, the stack frame and the pc at each step, with example addresses.

Download the video (MP4, 8 MB) · Captions (WebVTT) · All five Week 11 videos