MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / timer_handler

Function timer_handler

kernel/tests/interrupt_wrap.rs:49–58  ·  view source on GitHub ↗
(context: &mut Context)

Source from the content-addressed store, hash-verified

47}
48
49extern "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
60interrupt_wrap!(timer_handler => timer_handler_naked);
61

Callers

nothing calls this directly

Calls 1

as_u8Method · 0.80

Tested by

no test coverage detected