summaryrefslogtreecommitdiff
path: root/include/common/kernel/cpu.h
diff options
context:
space:
mode:
authorReiko Asakura2020-07-05 17:19:25 -0400
committerReiko Asakura2020-07-05 17:19:25 -0400
commit2d531d716a6a5da0846241ec1611fecf57e005d5 (patch)
treeba6fafade0e5707f1de6307515044c03cf78139a /include/common/kernel/cpu.h
parentAdd kernel constants header (diff)
downloadvds-libraries-2d531d716a6a5da0846241ec1611fecf57e005d5.tar.gz
Add CPU constants
Diffstat (limited to '')
-rw-r--r--include/common/kernel/cpu.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/common/kernel/cpu.h b/include/common/kernel/cpu.h
new file mode 100644
index 0000000..4b42321
--- /dev/null
+++ b/include/common/kernel/cpu.h
@@ -0,0 +1,19 @@
+#ifndef _DOLCESDK_PSP2COMMON_KERNEL_CPU_H_
+#define _DOLCESDK_PSP2COMMON_KERNEL_CPU_H_
+
+#define SCE_KERNEL_MAX_CPU 4
+#define SCE_KERNEL_CPU_MASK_SHIFT 16
+#define SCE_KERNEL_CPU_MASK_USER_0 (0x01 << SCE_KERNEL_CPU_MASK_SHIFT)
+#define SCE_KERNEL_CPU_MASK_USER_1 (0x02 << SCE_KERNEL_CPU_MASK_SHIFT)
+#define SCE_KERNEL_CPU_MASK_USER_2 (0x04 << SCE_KERNEL_CPU_MASK_SHIFT)
+#define SCE_KERNEL_CPU_MASK_USER_3 (0x08 << SCE_KERNEL_CPU_MASK_SHIFT)
+
+#define SCE_KERNEL_CPU_MASK_USER_ALL \
+ (SCE_KERNEL_CPU_MASK_USER_0 | SCE_KERNEL_CPU_MASK_USER_1 \
+ | SCE_KERNEL_CPU_MASK_USER_2)
+
+#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)
+
+#endif // _DOLCESDK_PSP2COMMON_KERNEL_CPU_H_