Schedule inside of systick_irq
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 40s
Build documentation / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-04-12 11:21:51 +02:00
parent 182d8018c7
commit 55ff95c897
9 changed files with 38 additions and 14 deletions

View File

@@ -7,6 +7,7 @@
#include <amd64/msr-index.h>
#include <amd64/msr.h>
#include <amd64/sse.h>
#include <amd64/systick.h>
#include <aux/compiler.h>
#include <device/device.h>
#include <device/storage/partitions.h>
@@ -62,7 +63,7 @@ void bootmain (void) {
bsp_cpu->kproc = kproc_create ();
lapic_init (5000);
lapic_init (1000);
__asm__ volatile ("sti");
@@ -78,7 +79,7 @@ void bootmain (void) {
struct device* temp0 = device_find ("temp0");
vfs_create_volume (thiscpu->kproc, &rctx, "temp", FS_FAT16, temp0, true);
irq_attach (&proc_irq_sched, NULL, INTR_SCHED_PREEMPT_TIMER);
irq_attach (&systick_irq, NULL, INTR_SYSTICK);
irq_attach (&proc_irq_sched, NULL, INTR_CPU_REQUEST_SCHED);
smp_init ();