Three Gates and a Pending Bit¶
Exercise: 44k_interrupts · Fri Nov 6 · Length: 5:33 · Lecture: Week 11 · Three gates and a pending bit · Explainer: Three Gates and a Pending Bit
A narrated walk through the explainer, for after the Nov 3 lecture and before
Friday's session: the timer speaks only to machine mode, so each tick takes a
detour; the kernel takes it only while three gates are open, and it stays
pending until the handler lowers it. The video follows a tick's detour through
timervec, reads scause top bit first, then steps through two ticks of the
given test: mtime and mtimecmp, the three gates, and the count. Two broken
cases follow, with what the test printed in real runs: the untouched skeleton,
and a pending bit never lowered. The video ends on the test's outcomes and what
the test cannot see. It shows no solution code: only the clock, the gates and
the trap registers at each step, with example numbers.
Download the video (MP4, 8 MB) · Captions (WebVTT) · All five Week 11 videos