Files
mop3/kernel/amd64/systick.c
kamkow1 55ff95c897
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 40s
Build documentation / build-and-deploy (push) Successful in 30s
Schedule inside of systick_irq
2026-04-12 11:21:51 +02:00

13 lines
266 B
C

#include <libk/std.h>
#include <proc/reschedule.h>
#include <sys/smp.h>
static uint32_t systicks = 0;
void systick_irq (void* arg, void* regs, bool user, struct reschedule_ctx* rctx) {
systicks++;
if (systicks % 5 == 0)
rctx_insert_cpu (rctx, thiscpu);
}