This commit is contained in:
2026-09-14 02:50:35 +02:00
parent cf3f1f9e99
commit 9e5ed517bc
45 changed files with 210 additions and 212 deletions
+1
View File
@@ -2,6 +2,7 @@
#include <zinnia/status.h>
#include <kernel/alloc.h>
#include <kernel/arch.h>
#include <kernel/clock.h>
#include <kernel/console.h>
#include <kernel/syscalls.h>
+1 -1
View File
@@ -101,7 +101,7 @@ zn_status_t syscall_thread_start(struct arch_context* ctx) {
// Re-initialize the task's arch context to enter user mode via sched_to_user_arg.
status =
arch_task_init(&task->context, sched_to_user, (uintptr_t)info, task->kernel_stack + KERNEL_STACK_SIZE, true);
arch_task_init(&task->task_ctx, sched_to_user, (uintptr_t)info, task->kernel_stack + KERNEL_STACK_SIZE, true);
if (status != ZN_OK) {
mem_free(info);
return status;
+1
View File
@@ -4,6 +4,7 @@
#include <zinnia/status.h>
#include <common/utils.h>
#include <kernel/alloc.h>
#include <kernel/arch.h>
#include <kernel/namespace.h>
#include <kernel/percpu.h>
#include <kernel/print.h>