Skip to content

OSlings Practice 42k-44k, Problem 3: Interrupts

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

Two parts, worked on the set's pages 5 and 6: (a) a timer tick's scause, 0x8000_0000_0000_0001: its top bit, whether it is an interrupt or an exception, its code, and what kerneltrap does with it; (b) what happens after sret when the handler counts the tick but never clears SSIP, and why. The answer key's handwriting is written onto the page as each step is worked.

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