summaryrefslogtreecommitdiff
path: root/include/common/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'include/common/kernel')
-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