summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-09 03:08:28 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:32 +0200
commit8bbc38a7bd59e285c4098c1a70528455c4bb0f29 (patch)
treeb6deea5e4266a9a577add61c9910a2e59de970b3 /src/core
parentkernel: resource_limit: Reserve physical memory. (diff)
downloadyuzu-8bbc38a7bd59e285c4098c1a70528455c4bb0f29.tar
yuzu-8bbc38a7bd59e285c4098c1a70528455c4bb0f29.tar.gz
yuzu-8bbc38a7bd59e285c4098c1a70528455c4bb0f29.tar.bz2
yuzu-8bbc38a7bd59e285c4098c1a70528455c4bb0f29.tar.lz
yuzu-8bbc38a7bd59e285c4098c1a70528455c4bb0f29.tar.xz
yuzu-8bbc38a7bd59e285c4098c1a70528455c4bb0f29.tar.zst
yuzu-8bbc38a7bd59e285c4098c1a70528455c4bb0f29.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/irs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp
index 5e79e2c1a..36ed6f7da 100644
--- a/src/core/hle/service/hid/irs.cpp
+++ b/src/core/hle/service/hid/irs.cpp
@@ -6,6 +6,7 @@
#include "core/core.h"
#include "core/core_timing.h"
#include "core/hle/ipc_helpers.h"
+#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/service/hid/irs.h"
@@ -38,9 +39,8 @@ IRS::IRS(Core::System& system) : ServiceFramework{"irs"}, system(system) {
RegisterHandlers(functions);
auto& kernel = system.Kernel();
- shared_mem = Kernel::SharedMemory::Create(
- kernel, nullptr, 0x8000, Kernel::MemoryPermission::ReadWrite,
- Kernel::MemoryPermission::Read, 0, Kernel::MemoryRegion::BASE, "IRS:SharedMemory");
+
+ shared_mem = SharedFrom(&kernel.GetIrsSharedMem());
}
void IRS::ActivateIrsensor(Kernel::HLERequestContext& ctx) {