summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-09 03:09:16 +0200
committerbunnei <bunneidev@gmail.com>2020-04-17 06:59:33 +0200
commit67b3df683b91ca7f207c0ead898ee09bd5c4ec58 (patch)
tree834c531b28c418a984f9d792054fceb119c12b24
parentservice: hid: Update for new shared memory layout. (diff)
downloadyuzu-67b3df683b91ca7f207c0ead898ee09bd5c4ec58.tar
yuzu-67b3df683b91ca7f207c0ead898ee09bd5c4ec58.tar.gz
yuzu-67b3df683b91ca7f207c0ead898ee09bd5c4ec58.tar.bz2
yuzu-67b3df683b91ca7f207c0ead898ee09bd5c4ec58.tar.lz
yuzu-67b3df683b91ca7f207c0ead898ee09bd5c4ec58.tar.xz
yuzu-67b3df683b91ca7f207c0ead898ee09bd5c4ec58.tar.zst
yuzu-67b3df683b91ca7f207c0ead898ee09bd5c4ec58.zip
-rw-r--r--src/core/hle/service/time/time_sharedmemory.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/time/time_sharedmemory.cpp b/src/core/hle/service/time/time_sharedmemory.cpp
index fdaef233f..999ec1e51 100644
--- a/src/core/hle/service/time/time_sharedmemory.cpp
+++ b/src/core/hle/service/time/time_sharedmemory.cpp
@@ -6,6 +6,7 @@
#include "core/core_timing.h"
#include "core/core_timing_util.h"
#include "core/hardware_properties.h"
+#include "core/hle/kernel/kernel.h"
#include "core/hle/service/time/clock_types.h"
#include "core/hle/service/time/steady_clock_core.h"
#include "core/hle/service/time/time_sharedmemory.h"
@@ -15,9 +16,7 @@ namespace Service::Time {
static constexpr std::size_t SHARED_MEMORY_SIZE{0x1000};
SharedMemory::SharedMemory(Core::System& system) : system(system) {
- shared_memory_holder = Kernel::SharedMemory::Create(
- system.Kernel(), nullptr, SHARED_MEMORY_SIZE, Kernel::MemoryPermission::ReadWrite,
- Kernel::MemoryPermission::Read, 0, Kernel::MemoryRegion::BASE, "Time:SharedMemory");
+ shared_memory_holder = SharedFrom(&system.Kernel().GetTimeSharedMem());
std::memset(shared_memory_holder->GetPointer(), 0, SHARED_MEMORY_SIZE);
}