stos: mm: Add locking to VAD lists

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-23 22:27:05 +00:00
parent b5c2ba80f7
commit 7ce1cf27d1
3 changed files with 17 additions and 6 deletions
+3
View File
@@ -10,6 +10,7 @@
#define _MM_VAD_H_ 1
#include <stdef.h>
#include <ke/spinlock.h>
#define VAD_FROM_VMA(VMA) \
((MM_VAD *)(VMA))
@@ -31,10 +32,12 @@ typedef struct _MM_VAD {
*
* @First: First entry in VAD list
* @Last: Last entry in VAD list
* @Lock: Lock protecting this VAD list
*/
typedef struct {
MM_VAD *First;
MM_VAD *Last;
SPINLOCK Lock;
} MM_VAD_LIST;
/*