Want to build your own kernel in Rust? See Bare Metal Rust to get started. We’re almost ready to write a keyboard driver in Rust! But first, we need to deal with two obstacles: setting up the PIC, and handling interrupts without crashing. This is one of the most frustrating steps, as Julia Evans explains in her hilarious and very helpful post After 5 days, my OS doesn’t crash when I press a key: Turn interrupts on (sti). The OS AGAIN crashes every time i press a key. Read “I Can’t Get...