[kernel] Add spinlocks to vm_space, frame_allocator
Also updated spinlock interface to be an object, and added a scoped lock object that uses it as well.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include "kutil/enum_bitfields.h"
|
||||
#include "kutil/spinlock.h"
|
||||
#include "kutil/vector.h"
|
||||
#include "page_table.h"
|
||||
|
||||
@@ -127,6 +128,8 @@ private:
|
||||
bool operator==(const struct area &o) const;
|
||||
};
|
||||
kutil::vector<area> m_areas;
|
||||
|
||||
kutil::spinlock m_lock;
|
||||
};
|
||||
|
||||
IS_BITFIELD(vm_space::fault_type);
|
||||
|
||||
Reference in New Issue
Block a user