aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-10 16:35:57 -0400
committerIan Moffett <ian@osmora.org>2024-04-10 16:35:57 -0400
commit2e6049f48283042e95f06668d75cbdb8380581c3 (patch)
tree1337e4044441a61c6a550f7ee451a59d4f0eca9b /sys/include
parent93adb32878463cfb92c9bad42f39587b0b267438 (diff)
kernel: proc: Add lock to 'proc' structure
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/proc.h2
1 files changed, 2 insertions, 0 deletions
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 <sys/types.h>
#include <sys/queue.h>
#include <sys/filedesc.h>
+#include <sys/spinlock.h>
#include <machine/cpu.h>
#include <machine/frame.h>
#include <machine/pcb.h>
@@ -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;