summaryrefslogtreecommitdiff
path: root/include/common/kernel/cpu.h
diff options
context:
space:
mode:
authorReiko Asakura2021-03-05 16:16:45 -0500
committerReiko Asakura2021-03-05 16:16:45 -0500
commitbe968cea25fac6626fd16811f649ea0f2d2dcef9 (patch)
tree28aaac76035fd12347c99e7e8c9d0c6a4b0a2407 /include/common/kernel/cpu.h
parentAdd comments in common/kernel/cpu.h (diff)
downloadvds-libraries-be968cea25fac6626fd16811f649ea0f2d2dcef9.tar.gz
Rename sceKernelCpuGetCpuId -> sceKernelCpuId
This name is from SDK 0.945.040, and also confirmed by SHA1 digest in SceKblForKernel.
Diffstat (limited to 'include/common/kernel/cpu.h')
-rw-r--r--include/common/kernel/cpu.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/common/kernel/cpu.h b/include/common/kernel/cpu.h
index 2757db4..48ca303 100644
--- a/include/common/kernel/cpu.h
+++ b/include/common/kernel/cpu.h
@@ -18,4 +18,21 @@
#define SCE_KERNEL_CPU_MASK_USER_QUAD \
(SCE_KERNEL_CPU_MASK_USER_0 | SCE_KERNEL_CPU_MASK_USER_1 | SCE_KERNEL_CPU_MASK_USER_2 | SCE_KERNEL_CPU_MASK_USER_3)
+SCE_CDECL_BEGIN
+
+#if !defined(_LANGUAGE_ASSEMBLY)
+
+/**
+ * @j
+ * @brief CPUの物理コア番号を取得するAPIです。デバッグ目的のみに限定してください。
+ *
+ * @retval 0-3 cpu core number
+ * @ej
+ */
+SceUInt sceKernelCpuId(void);
+
+#endif /* !defined(_LANGUAGE_ASSEMBLY) */
+
+SCE_CDECL_END
+
#endif // _VDSUITE_COMMON_KERNEL_CPU_H