From 779b7fc1fe91e5a355b6e15de882d46b26ab2270 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sat, 5 Sep 2026 20:24:13 -0400 Subject: working syscalls. --- arch/x86_64/hal/smp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'arch/x86_64/hal/smp.c') diff --git a/arch/x86_64/hal/smp.c b/arch/x86_64/hal/smp.c index e0945c1..85ba4ec 100644 --- a/arch/x86_64/hal/smp.c +++ b/arch/x86_64/hal/smp.c @@ -1,4 +1,5 @@ #include "smp.h" +#include "hal/process.h" #include "init.h" #include "hal/obj.h" #include "config.h" @@ -55,12 +56,7 @@ smp_init_bsp(void) } } -void *processor_current(void) +processor_t *processor_current(void) { return (processor_t*)msr_get_gs_base(); } - -jove_obj_t *processor_objdir(void *processor) -{ - return ((processor_t*)processor)->pcb->rootdir; -} -- cgit v1.2.3