diff --git a/kernel/src/memory/SharedMemory.h b/kernel/src/memory/SharedMemory.h index 656c3bd4..94ded57a 100644 --- a/kernel/src/memory/SharedMemory.h +++ b/kernel/src/memory/SharedMemory.h @@ -14,6 +14,9 @@ struct SharedMemory SharedPtr device {}; int refs { 0 }; + SharedMemory() = default; + SharedMemory(SharedMemory&&) = default; + static Result create(u8* mem, off_t offset, usize count); Result grow_forward(u8* mem, usize count); @@ -22,6 +25,8 @@ struct SharedMemory Result map(u64 virt, int flags, off_t offset, usize count); void free(); + + ~SharedMemory() = default; }; extern HashMap g_shared_memory_map;