summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-27 03:55:55 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-27 03:55:55 +0200
commit96b21055249ade8a36f8117e4e22ea2a8a10707b (patch)
tree233306d972ad5e842b4e35910ce86d9f954dbf07 /src/core/hle/service
parentsvc: changed SendSyncRequest to use Kernel::Object SyncRequest (instead of just service Interface class) (diff)
downloadyuzu-96b21055249ade8a36f8117e4e22ea2a8a10707b.tar
yuzu-96b21055249ade8a36f8117e4e22ea2a8a10707b.tar.gz
yuzu-96b21055249ade8a36f8117e4e22ea2a8a10707b.tar.bz2
yuzu-96b21055249ade8a36f8117e4e22ea2a8a10707b.tar.lz
yuzu-96b21055249ade8a36f8117e4e22ea2a8a10707b.tar.xz
yuzu-96b21055249ade8a36f8117e4e22ea2a8a10707b.tar.zst
yuzu-96b21055249ade8a36f8117e4e22ea2a8a10707b.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/srv.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp
index ff6da8f1c..7bbc03bf6 100644
--- a/src/core/hle/service/srv.cpp
+++ b/src/core/hle/service/srv.cpp
@@ -5,21 +5,28 @@
#include "core/hle/hle.h"
#include "core/hle/service/srv.h"
#include "core/hle/service/service.h"
-
+#include "core/hle/kernel/mutex.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace SRV
namespace SRV {
+Handle g_mutex = 0;
+
void Initialize(Service::Interface* self) {
- NOTICE_LOG(OSHLE, "SRV::Sync - Initialize");
+ DEBUG_LOG(OSHLE, "SRV::Initialize called");
+ if (!g_mutex) {
+ g_mutex = Kernel::CreateMutex(false);
+ }
}
void GetProcSemaphore(Service::Interface* self) {
+ DEBUG_LOG(OSHLE, "SRV::GetProcSemaphore called");
// Get process semaphore?
u32* cmd_buff = Service::GetCommandBuffer();
- cmd_buff[3] = 0xDEADBEEF; // Return something... 0 == NULL, raises an exception
+ cmd_buff[1] = 0; // No error
+ cmd_buff[3] = g_mutex; // Return something... 0 == NULL, raises an exception
}
void GetServiceHandle(Service::Interface* self) {