diff options
| author | 2014-05-21 21:41:40 -0400 | |
|---|---|---|
| committer | 2014-05-21 21:41:40 -0400 | |
| commit | 06e3c3d55a6e8e58295bd9e7bebecdc777145b20 (patch) | |
| tree | 79bc1524ade697e3abffe9c6fbf66b853a374fd4 /src/core | |
| parent | svc: enabled use of newly created kernel thread handle (diff) | |
| download | yuzu-06e3c3d55a6e8e58295bd9e7bebecdc777145b20.tar.gz yuzu-06e3c3d55a6e8e58295bd9e7bebecdc777145b20.tar.xz yuzu-06e3c3d55a6e8e58295bd9e7bebecdc777145b20.zip | |
svc: added Kernel::Reschedule to svc WaitSynchronization1, updated log messages to include newly created handles
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/svc.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 6f6f5b2f5..14d512b99 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -109,6 +109,7 @@ Result WaitSynchronization1(Handle handle, s64 nano_seconds) { | |||
| 109 | // ImplementMe | 109 | // ImplementMe |
| 110 | DEBUG_LOG(SVC, "(UNIMPLEMENTED) WaitSynchronization1 called handle=0x%08X, nanoseconds=%d", | 110 | DEBUG_LOG(SVC, "(UNIMPLEMENTED) WaitSynchronization1 called handle=0x%08X, nanoseconds=%d", |
| 111 | handle, nano_seconds); | 111 | handle, nano_seconds); |
| 112 | Kernel::Reschedule("WaitSynchronization1"); | ||
| 112 | return 0; | 113 | return 0; |
| 113 | } | 114 | } |
| 114 | 115 | ||
| @@ -172,14 +173,15 @@ Result CreateThread(u32 priority, u32 entry_point, u32 arg, u32 stack_top, u32 p | |||
| 172 | sprintf(buff, "%s", "unknown-%08X", entry_point); | 173 | sprintf(buff, "%s", "unknown-%08X", entry_point); |
| 173 | name = buff; | 174 | name = buff; |
| 174 | } | 175 | } |
| 175 | DEBUG_LOG(SVC, "CreateThread called entrypoint=0x%08X (%s), arg=0x%08X, stacktop=0x%08X, " | ||
| 176 | "threadpriority=0x%08X, processorid=0x%08X", entry_point, name.c_str(), arg, stack_top, | ||
| 177 | priority, processor_id); | ||
| 178 | 176 | ||
| 179 | Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, processor_id, | 177 | Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, processor_id, |
| 180 | stack_top); | 178 | stack_top); |
| 181 | 179 | ||
| 182 | Core::g_app_core->SetReg(1, thread); | 180 | Core::g_app_core->SetReg(1, thread); |
| 181 | |||
| 182 | DEBUG_LOG(SVC, "CreateThread called entrypoint=0x%08X (%s), arg=0x%08X, stacktop=0x%08X, " | ||
| 183 | "threadpriority=0x%08X, processorid=0x%08X : created handle 0x%08X", entry_point, | ||
| 184 | name.c_str(), arg, stack_top, priority, processor_id, thread); | ||
| 183 | 185 | ||
| 184 | return 0; | 186 | return 0; |
| 185 | } | 187 | } |
| @@ -187,9 +189,10 @@ Result CreateThread(u32 priority, u32 entry_point, u32 arg, u32 stack_top, u32 p | |||
| 187 | /// Create a mutex | 189 | /// Create a mutex |
| 188 | Result CreateMutex(void* _mutex, u32 initial_locked) { | 190 | Result CreateMutex(void* _mutex, u32 initial_locked) { |
| 189 | Handle* mutex = (Handle*)_mutex; | 191 | Handle* mutex = (Handle*)_mutex; |
| 190 | DEBUG_LOG(SVC, "CreateMutex called initial_locked=%s", initial_locked ? "true" : "false"); | ||
| 191 | *mutex = Kernel::CreateMutex((initial_locked != 0)); | 192 | *mutex = Kernel::CreateMutex((initial_locked != 0)); |
| 192 | Core::g_app_core->SetReg(1, *mutex); | 193 | Core::g_app_core->SetReg(1, *mutex); |
| 194 | DEBUG_LOG(SVC, "CreateMutex called initial_locked=%s : created handle 0x%08X", | ||
| 195 | initial_locked ? "true" : "false", *mutex); | ||
| 193 | return 0; | 196 | return 0; |
| 194 | } | 197 | } |
| 195 | 198 | ||