aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-13 14:36:09 -0500
committerIan Moffett <ian@osmora.org>2023-12-13 14:36:09 -0500
commit2e6affc24baca5540d6c7f6406519663c15ae985 (patch)
tree9ecbdffd822de460cf51ee3b0072b3fe285380da /sys/include
parent496862183a101a9aceaeff968441fd2ad0bbbd7d (diff)
kernel: vm: Ensure calls are serialized
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/vm/vm.h2
1 files changed, 2 insertions, 0 deletions
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 <sys/types.h>
#include <sys/limine.h>
#include <sys/cdefs.h>
+#include <sys/spinlock.h>
#include <vm/page.h>
#include <vm/pmap.h>
#include <vm/tlsf.h>
@@ -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;
};
/*