vmm: use mutexes

This commit is contained in:
Matheus
2023-07-26 21:39:06 -03:00
parent 49eef0e04c
commit f5c5b01d85
2 changed files with 19 additions and 18 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ typedef struct vmmrange_t{
} vmmrange_t;
typedef struct {
spinlock_t lock;
mutex_t lock;
struct vmmcache_t *next;
size_t freecount;
uintmax_t firstfree;
@@ -57,7 +57,7 @@ typedef struct vmmcache_t {
} vmmcache_t;
typedef struct {
spinlock_t lock;
mutex_t lock;
vmmrange_t *ranges;
void *start;
void *end;