diff options
| author | 2016-12-15 19:01:48 -0500 | |
|---|---|---|
| committer | 2016-12-21 23:29:13 -0500 | |
| commit | 232ef55c1a13552e5ba8b72d61d1d072f5851598 (patch) | |
| tree | 729ee82ded58202888a2c27bdc3beec6ab926768 /src/core/hle/svc.cpp | |
| parent | file_util: Remove unused paths. (diff) | |
| download | yuzu-232ef55c1a13552e5ba8b72d61d1d072f5851598.tar.gz yuzu-232ef55c1a13552e5ba8b72d61d1d072f5851598.tar.xz yuzu-232ef55c1a13552e5ba8b72d61d1d072f5851598.zip | |
core: Consolidate core and system state, remove system module & cleanups.
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 5839d7230..b20f2aaa4 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -582,7 +582,7 @@ static ResultCode CreateThread(Handle* out_handle, s32 priority, u32 entry_point | |||
| 582 | 582 | ||
| 583 | /// Called when a thread exits | 583 | /// Called when a thread exits |
| 584 | static void ExitThread() { | 584 | static void ExitThread() { |
| 585 | LOG_TRACE(Kernel_SVC, "called, pc=0x%08X", Core::g_app_core->GetPC()); | 585 | LOG_TRACE(Kernel_SVC, "called, pc=0x%08X", Core::AppCore().GetPC()); |
| 586 | 586 | ||
| 587 | Kernel::ExitCurrentThread(); | 587 | Kernel::ExitCurrentThread(); |
| 588 | } | 588 | } |
| @@ -612,7 +612,7 @@ static ResultCode CreateMutex(Handle* out_handle, u32 initial_locked) { | |||
| 612 | using Kernel::Mutex; | 612 | using Kernel::Mutex; |
| 613 | 613 | ||
| 614 | SharedPtr<Mutex> mutex = Mutex::Create(initial_locked != 0); | 614 | SharedPtr<Mutex> mutex = Mutex::Create(initial_locked != 0); |
| 615 | mutex->name = Common::StringFromFormat("mutex-%08x", Core::g_app_core->GetReg(14)); | 615 | mutex->name = Common::StringFromFormat("mutex-%08x", Core::AppCore().GetReg(14)); |
| 616 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(mutex))); | 616 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(mutex))); |
| 617 | 617 | ||
| 618 | LOG_TRACE(Kernel_SVC, "called initial_locked=%s : created handle=0x%08X", | 618 | LOG_TRACE(Kernel_SVC, "called initial_locked=%s : created handle=0x%08X", |
| @@ -683,7 +683,7 @@ static ResultCode CreateSemaphore(Handle* out_handle, s32 initial_count, s32 max | |||
| 683 | using Kernel::Semaphore; | 683 | using Kernel::Semaphore; |
| 684 | 684 | ||
| 685 | CASCADE_RESULT(SharedPtr<Semaphore> semaphore, Semaphore::Create(initial_count, max_count)); | 685 | CASCADE_RESULT(SharedPtr<Semaphore> semaphore, Semaphore::Create(initial_count, max_count)); |
| 686 | semaphore->name = Common::StringFromFormat("semaphore-%08x", Core::g_app_core->GetReg(14)); | 686 | semaphore->name = Common::StringFromFormat("semaphore-%08x", Core::AppCore().GetReg(14)); |
| 687 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(semaphore))); | 687 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(semaphore))); |
| 688 | 688 | ||
| 689 | LOG_TRACE(Kernel_SVC, "called initial_count=%d, max_count=%d, created handle=0x%08X", | 689 | LOG_TRACE(Kernel_SVC, "called initial_count=%d, max_count=%d, created handle=0x%08X", |
| @@ -740,7 +740,7 @@ static ResultCode CreateEvent(Handle* out_handle, u32 reset_type) { | |||
| 740 | using Kernel::Event; | 740 | using Kernel::Event; |
| 741 | 741 | ||
| 742 | SharedPtr<Event> evt = Event::Create(static_cast<Kernel::ResetType>(reset_type)); | 742 | SharedPtr<Event> evt = Event::Create(static_cast<Kernel::ResetType>(reset_type)); |
| 743 | evt->name = Common::StringFromFormat("event-%08x", Core::g_app_core->GetReg(14)); | 743 | evt->name = Common::StringFromFormat("event-%08x", Core::AppCore().GetReg(14)); |
| 744 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(evt))); | 744 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(evt))); |
| 745 | 745 | ||
| 746 | LOG_TRACE(Kernel_SVC, "called reset_type=0x%08X : created handle=0x%08X", reset_type, | 746 | LOG_TRACE(Kernel_SVC, "called reset_type=0x%08X : created handle=0x%08X", reset_type, |
| @@ -787,7 +787,7 @@ static ResultCode CreateTimer(Handle* out_handle, u32 reset_type) { | |||
| 787 | using Kernel::Timer; | 787 | using Kernel::Timer; |
| 788 | 788 | ||
| 789 | SharedPtr<Timer> timer = Timer::Create(static_cast<Kernel::ResetType>(reset_type)); | 789 | SharedPtr<Timer> timer = Timer::Create(static_cast<Kernel::ResetType>(reset_type)); |
| 790 | timer->name = Common::StringFromFormat("timer-%08x", Core::g_app_core->GetReg(14)); | 790 | timer->name = Common::StringFromFormat("timer-%08x", Core::AppCore().GetReg(14)); |
| 791 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(timer))); | 791 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(std::move(timer))); |
| 792 | 792 | ||
| 793 | LOG_TRACE(Kernel_SVC, "called reset_type=0x%08X : created handle=0x%08X", reset_type, | 793 | LOG_TRACE(Kernel_SVC, "called reset_type=0x%08X : created handle=0x%08X", reset_type, |
| @@ -854,7 +854,7 @@ static void SleepThread(s64 nanoseconds) { | |||
| 854 | static s64 GetSystemTick() { | 854 | static s64 GetSystemTick() { |
| 855 | s64 result = CoreTiming::GetTicks(); | 855 | s64 result = CoreTiming::GetTicks(); |
| 856 | // Advance time to defeat dumb games (like Cubic Ninja) that busy-wait for the frame to end. | 856 | // Advance time to defeat dumb games (like Cubic Ninja) that busy-wait for the frame to end. |
| 857 | Core::g_app_core->AddTicks( | 857 | Core::AppCore().AddTicks( |
| 858 | 150); // Measured time between two calls on a 9.2 o3DS with Ninjhax 1.1b | 858 | 150); // Measured time between two calls on a 9.2 o3DS with Ninjhax 1.1b |
| 859 | return result; | 859 | return result; |
| 860 | } | 860 | } |