kernel: pass ref to shared memory
This commit is contained in:
parent
2a411bb501
commit
87426b29ff
14 changed files with 95 additions and 88 deletions
|
@ -359,9 +359,9 @@ std::shared_ptr<Module> Module::Interface::GetModule() const {
|
|||
Module::Module(Core::System& system) : system(system) {
|
||||
using namespace Kernel;
|
||||
|
||||
shared_mem =
|
||||
SharedMemory::Create(nullptr, 0x1000, MemoryPermission::ReadWrite, MemoryPermission::Read,
|
||||
0, MemoryRegion::BASE, "HID:SharedMemory");
|
||||
shared_mem = system.Kernel().CreateSharedMemory(nullptr, 0x1000, MemoryPermission::ReadWrite,
|
||||
MemoryPermission::Read, 0, MemoryRegion::BASE,
|
||||
"HID:SharedMemory");
|
||||
|
||||
// Create event handles
|
||||
event_pad_or_touch_1 = system.Kernel().CreateEvent(ResetType::OneShot, "HID:EventPadOrTouch1");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue