MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / ipi_handler

Function ipi_handler

Kernel/src/arch/x86_64/idt.cpp:337–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336 extern "C"
337 void ipi_handler(int int_num, regs64_t* regs) {
338 LocalAPICEOI();
339
340 if (__builtin_expect(interrupt_handlers[int_num].handler != 0, 1)) {
341 ISRDataPair pair = interrupt_handlers[int_num];
342 pair.handler(pair.data, regs);
343 } else {
344 Log::Warning("Unhandled IPI: ");
345 Log::Write(int_num);
346 }
347 }

Callers

nothing calls this directly

Calls 3

LocalAPICEOIFunction · 0.85
WarningFunction · 0.85
WriteFunction · 0.70

Tested by

no test coverage detected