(context: &mut Context)
| 47 | } |
| 48 | |
| 49 | extern "C" fn timer_handler(context: &mut Context) { |
| 50 | context.r11 = context.rdi + 0x5321; |
| 51 | context.rcx = 0xdeadbeef; |
| 52 | |
| 53 | // Tell the PIC that the interrupt has been processed |
| 54 | unsafe { |
| 55 | PICS.lock() |
| 56 | .notify_end_of_interrupt(InterruptIndex::Timer.as_u8()); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | interrupt_wrap!(timer_handler => timer_handler_naked); |
| 61 |