From 2e6affc24baca5540d6c7f6406519663c15ae985 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 13 Dec 2023 14:36:09 -0500 Subject: kernel: vm: Ensure calls are serialized Signed-off-by: Ian Moffett --- sys/include/vm/vm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include/vm/vm.h') diff --git a/sys/include/vm/vm.h b/sys/include/vm/vm.h index 59cf3bc..2b4ccad 100644 --- a/sys/include/vm/vm.h +++ b/sys/include/vm/vm.h @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -53,6 +54,7 @@ struct vm_ctx { uintptr_t dynalloc_pool_phys; size_t dynalloc_pool_sz; /* In bytes */ tlsf_t tlsf_ctx; + struct spinlock dynalloc_lock; }; /* -- cgit v1.2.3