mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
vmm: use mutexes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user