diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-27 06:50:02 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-27 06:53:33 -0400 |
commit | 41f5792098c8f2764441eca195a24918b4ae390f (patch) | |
tree | 99ac25e4ce281f9bf1f8d832c5b774bba2115dc4 /src/sys/include | |
parent | add156b750d77132ca2d063a4718ac1a5139e59a (diff) |
kern: proc: Protect mapping list with spinlock
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/sys/proc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/include/sys/proc.h b/src/sys/include/sys/proc.h index c31cc4c..c5b0fda 100644 --- a/src/sys/include/sys/proc.h +++ b/src/sys/include/sys/proc.h @@ -36,6 +36,7 @@ #include <sys/param.h> #include <sys/queue.h> #include <os/mac.h> +#include <os/spinlock.h> #include <os/filedesc.h> #include <vm/vm.h> #include <machine/pcb.h> /* standard */ @@ -66,6 +67,7 @@ struct proc { struct syscall_domain scdom; struct filedesc *fdtab[FD_MAX]; mac_level_t level; + struct spinlock maplist_lock; TAILQ_HEAD(, vm_range) maplist; TAILQ_ENTRY(proc) link; }; |