summaryrefslogtreecommitdiff
path: root/include/nitro/OS_system_shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/nitro/OS_system_shared.h')
-rw-r--r--include/nitro/OS_system_shared.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/nitro/OS_system_shared.h b/include/nitro/OS_system_shared.h
new file mode 100644
index 00000000..f36e7638
--- /dev/null
+++ b/include/nitro/OS_system_shared.h
@@ -0,0 +1,34 @@
+/*
+ * NOTE:
+ * This file is shared between ARM9 and ARM7
+ * DO NOT PUT PROC SPECIFIC CODE IN HERE
+ * Thank You!
+ */
+
+/*
+ * DO NOT INCLUDE THIS FILE DIRECTLY
+ * Include OS_system.h from the specific proc's lib
+ */
+
+#ifndef POKEDIAMOND_OS_SYSTEM_SHARED_H
+#define POKEDIAMOND_OS_SYSTEM_SHARED_H
+
+#include "nitro/consts_shared.h"
+
+typedef enum {
+ OS_PROCMODE_USER=16,
+ OS_PROCMODE_FIQ=17,
+ OS_PROCMODE_IRQ=18,
+ OS_PROCMODE_SVC=19,
+ OS_PROCMODE_ABORT=23,
+ OS_PROCMODE_UNDEF=27,
+ OS_PROCMODE_SYS=31
+} OSProcMode;
+
+typedef enum {
+ OS_INTRMODE_DISABLE_IRQ = HW_PSR_DISABLE_IRQ,
+ OS_INTRMODE_DISABLE_FIQ = HW_PSR_DISABLE_FIQ,
+ OS_INTRMODE_ENABLE = 0
+} OSIntrMode;
+
+#endif //POKEDIAMOND_OS_SYSTEM_SHARED_H