mirror of
https://github.com/justinian/jsix.git
synced 2025-12-12 09:24:31 -08:00
[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:
@@ -3,6 +3,7 @@
|
||||
/// Allocator for physical memory frames
|
||||
|
||||
#include <stdint.h>
|
||||
#include "kutil/spinlock.h"
|
||||
|
||||
namespace kernel {
|
||||
namespace args {
|
||||
@@ -43,7 +44,9 @@ public:
|
||||
|
||||
private:
|
||||
frame_block *m_blocks;
|
||||
long m_count;
|
||||
size_t m_count;
|
||||
|
||||
kutil::spinlock m_lock;
|
||||
|
||||
frame_allocator() = delete;
|
||||
frame_allocator(const frame_allocator &) = delete;
|
||||
|
||||
Reference in New Issue
Block a user