diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-06-05 16:03:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 16:03:15 -0400 |
commit | cae6ef601c8d2892c078eb77327e4552f3c8bf64 (patch) | |
tree | 081eda1af00d591ff2789ec3f5343d01870d6079 /include/nitro/OS_system_shared.h | |
parent | 9595aa2bee8b1c87342cf20cff10c2675aa1006f (diff) | |
parent | ed295dc6089bdf4825233b63e432fb194240b98a (diff) |
Merge pull request #140 from red031000/master
shared headers
Diffstat (limited to 'include/nitro/OS_system_shared.h')
-rw-r--r-- | include/nitro/OS_system_shared.h | 34 |
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 |