diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-05 20:24:13 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-05 20:24:13 -0400 |
| commit | 779b7fc1fe91e5a355b6e15de882d46b26ab2270 (patch) | |
| tree | c62da25a0a0b02488550e856921350fd94668c2b /arch/x86_64/hal/smp.c | |
| parent | 73cbb23130f634bf52ac92da063efd3e6016f8ee (diff) | |
| download | jove-kernel-779b7fc1fe91e5a355b6e15de882d46b26ab2270.tar.gz jove-kernel-779b7fc1fe91e5a355b6e15de882d46b26ab2270.tar.bz2 jove-kernel-779b7fc1fe91e5a355b6e15de882d46b26ab2270.zip | |
working syscalls.
Diffstat (limited to 'arch/x86_64/hal/smp.c')
| -rw-r--r-- | arch/x86_64/hal/smp.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; -} |
