baby_swtch, Step by Step¶
Exercise: 20a_asm_bridge · Thu Oct 1 · Length: 8:50 · Lecture: Week 6 · A ret that lands somewhere else · Explainer: The RISC-V Assembly Bridge
A narrated walk through the explainer's switch stepper: why a call cannot pause
one thread and run another, the memory map and the four-register Ctx, every
step of the round trip from main to co_entry and back, and two broken
versions run for real in QEMU. It ends on what swtch in 35k_context_switch
adds: ten more saved registers, and the same shape.
Download the video (MP4, 38 MB) · Captions (WebVTT)