Store a thread, to be scheduled when an interrupt occurs
(thread: Box<Thread>)
| 322 | |
| 323 | /// Store a thread, to be scheduled when an interrupt occurs |
| 324 | pub fn await_interrupt(thread: Box<Thread>) { |
| 325 | INTERRUPT_WAITING.write().push(thread); |
| 326 | |
| 327 | unsafe { |
| 328 | PICS.lock() |
| 329 | .notify_end_of_interrupt(InterruptIndex::Keyboard.as_u8()); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | interrupt_wrap!(keyboard_handler_inner => keyboard_interrupt_handler); |
| 334 |
no test coverage detected