Handle IRQs inside the kernel
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m42s

This commit is contained in:
2026-03-13 20:33:27 +01:00
parent 4760818118
commit 217179c9a0
84 changed files with 14517 additions and 1297 deletions

View File

@@ -1,3 +1,4 @@
#include <amd64/apic.h>
#include <amd64/fx.h>
#include <amd64/gdt.h>
#include <amd64/intr.h>
@@ -7,7 +8,7 @@
#include <libk/lengthof.h>
#include <libk/list.h>
#include <libk/string.h>
#include <mm/liballoc.h>
#include <mm/malloc.h>
#include <proc/proc.h>
#include <proc/reschedule.h>
#include <status.h>
@@ -46,9 +47,17 @@ uintptr_t syscall_dispatch (void* stack_ptr) {
struct reschedule_ctx rctx;
memset (&rctx, 0, sizeof (rctx));
lapic_timer_mask ();
__asm__ volatile ("sti");
uintptr_t r =
func (caller, regs, &rctx, regs->rdi, regs->rsi, regs->rdx, regs->r10, regs->r8, regs->r9);
__asm__ volatile ("cli");
lapic_timer_unmask ();
caller = proc_find_pid (caller_pid);
if (caller != NULL) {