From 2e6049f48283042e95f06668d75cbdb8380581c3 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 10 Apr 2024 16:35:57 -0400 Subject: kernel: proc: Add lock to 'proc' structure Signed-off-by: Ian Moffett --- sys/include/sys/proc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/proc.h b/sys/include/sys/proc.h index 75a5c1b..5029c93 100644 --- a/sys/include/sys/proc.h +++ b/sys/include/sys/proc.h @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -57,6 +58,7 @@ struct proc { struct pcb pcb; struct vas addrsp; struct vm_range addr_range[PROC_MAX_ADDR_RANGE]; + struct spinlock lock; uint8_t is_user; struct filedesc *fds[PROC_MAX_FDS]; TAILQ_ENTRY(proc) link; -- cgit v1.2.3