Kernel: Capture SharedMemory attributes at creation, not when mapping
This commit is contained in:
parent
088f6ae2c6
commit
c96f22490a
7 changed files with 51 additions and 28 deletions
|
@ -601,7 +601,9 @@ static ResultCode CreateMemoryBlock(Handle* out_handle, u32 addr, u32 size, u32
|
|||
using Kernel::SharedMemory;
|
||||
// TODO(Subv): Implement this function
|
||||
|
||||
SharedPtr<SharedMemory> shared_memory = SharedMemory::Create();
|
||||
using Kernel::MemoryPermission;
|
||||
SharedPtr<SharedMemory> shared_memory = SharedMemory::Create(size,
|
||||
(MemoryPermission)my_permission, (MemoryPermission)other_permission);
|
||||
CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(shared_memory)));
|
||||
|
||||
LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x%08X", addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue