diff options
author | bunnei <bunneidev@gmail.com> | 2023-02-11 06:41:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-11 06:41:22 +0100 |
commit | abd826ba87a7a02c2a0813f18f99915f8d6799b8 (patch) | |
tree | 208aad5a3c173905fab6b2c61532cbf984ca381b /src/core/hle/kernel/svc/svc_processor.cpp | |
parent | Merge pull request #9759 from german77/pro_controller (diff) | |
parent | kernel/svc: switch to generated wrappers (diff) | |
download | yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.gz yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.bz2 yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.lz yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.xz yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.tar.zst yuzu-abd826ba87a7a02c2a0813f18f99915f8d6799b8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc/svc_processor.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc/svc_processor.cpp b/src/core/hle/kernel/svc/svc_processor.cpp index 8561cf74f..7602ce6c0 100644 --- a/src/core/hle/kernel/svc/svc_processor.cpp +++ b/src/core/hle/kernel/svc/svc_processor.cpp @@ -9,12 +9,16 @@ namespace Kernel::Svc { /// Get which CPU core is executing the current thread -u32 GetCurrentProcessorNumber(Core::System& system) { +int32_t GetCurrentProcessorNumber(Core::System& system) { LOG_TRACE(Kernel_SVC, "called"); - return static_cast<u32>(system.CurrentPhysicalCore().CoreIndex()); + return static_cast<int32_t>(system.CurrentPhysicalCore().CoreIndex()); } -u32 GetCurrentProcessorNumber32(Core::System& system) { +int32_t GetCurrentProcessorNumber64(Core::System& system) { + return GetCurrentProcessorNumber(system); +} + +int32_t GetCurrentProcessorNumber64From32(Core::System& system) { return GetCurrentProcessorNumber(system); } |