summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc/svc_processor.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-02-11 06:41:22 +0100
committerGitHub <noreply@github.com>2023-02-11 06:41:22 +0100
commitabd826ba87a7a02c2a0813f18f99915f8d6799b8 (patch)
tree208aad5a3c173905fab6b2c61532cbf984ca381b /src/core/hle/kernel/svc/svc_processor.cpp
parentMerge pull request #9759 from german77/pro_controller (diff)
parentkernel/svc: switch to generated wrappers (diff)
downloadyuzu-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 'src/core/hle/kernel/svc/svc_processor.cpp')
-rw-r--r--src/core/hle/kernel/svc/svc_processor.cpp10
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);
}