stos: mm: Add locking to VAD lists
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user