amd64: add syscall entry mechanism

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-15 20:08:22 -04:00
commit d7477ae860
8 changed files with 103 additions and 87 deletions

View file

@ -2,11 +2,12 @@
#ifndef _ARCH_PROC_H_
#define _ARCH_PROC_H_
#include <kernel/proc.h>
#include <kernel/common.h>
#include <kernel/types.h>
struct proc;
struct thread;
struct cpu_local {
struct proc *current_proc;
struct thread *cur_thread;
vaddr_t kernel_rsp;
vaddr_t user_rsp;
u32 cpu_id;