From 127307827d966a0c56212e93d1d50c3b79da31ab Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 7 Dec 2024 04:27:15 -0500 Subject: kernel: vcache: Add impl of "local" vcaches This commit implements local vcaches and lazy vcache migration (LZVM) for on the fly vcache type switching. Signed-off-by: Ian Moffett --- sys/include/sys/proc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h index b10ee41..5925be8 100644 --- a/sys/include/sys/proc.h +++ b/sys/include/sys/proc.h @@ -39,6 +39,7 @@ #include #include #include +#include #if defined(_KERNEL) #include #include @@ -56,6 +57,8 @@ struct proc { struct exec_prog exec; struct ksiginfo *ksig_list[PROC_SIGMAX]; struct filedesc *fds[PROC_MAX_FILEDES]; + struct vcache *vcache; + struct spinlock vcache_lock; struct trapframe tf; struct pcb pcb; size_t priority; -- cgit v1.2.3