diff options
author | Cleverking2003 <30466983+Cleverking2003@users.noreply.github.com> | 2020-05-20 22:51:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 22:51:06 +0300 |
commit | dace495d47de9479f031f34f948151595acbca13 (patch) | |
tree | 4f31107f4446b69106acb0673a383dfdaf88473e /arm9/lib | |
parent | de389305733545e2b6fac6c8dcb33d76a7446481 (diff) | |
parent | d1d3fce4b6be10ed7186a6c36bc27fe575b593db (diff) |
Merge pull request #97 from PikalaxALT/pikalax_work
Split code
Diffstat (limited to 'arm9/lib')
-rw-r--r-- | arm9/lib/include/OS_system.h | 1 | ||||
-rw-r--r-- | arm9/lib/include/syscall.h | 6 | ||||
-rw-r--r-- | arm9/lib/src/OS_system.c | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_system.h b/arm9/lib/include/OS_system.h index 794e16d2..6ce585dc 100644 --- a/arm9/lib/include/OS_system.h +++ b/arm9/lib/include/OS_system.h @@ -35,5 +35,6 @@ OSIntrMode OS_GetCpsrIrq(); OSProcMode OS_GetProcMode(); void OS_SpinWait(); void OS_WaitVBlankIntr(); +void OS_WaitIrq(BOOL, u32); #endif //POKEDIAMOND_OS_SYSTEM_H diff --git a/arm9/lib/include/syscall.h b/arm9/lib/include/syscall.h new file mode 100644 index 00000000..8561cabe --- /dev/null +++ b/arm9/lib/include/syscall.h @@ -0,0 +1,6 @@ +#ifndef NITRO_SYSCALL_H_ +#define NITRO_SYSCALL_H_ + +void SVC_WaitByLoop(u32 ct); + +#endif //NITRO_SYSCALL_H_ diff --git a/arm9/lib/src/OS_system.c b/arm9/lib/src/OS_system.c index e5dfcb47..5379433b 100644 --- a/arm9/lib/src/OS_system.c +++ b/arm9/lib/src/OS_system.c @@ -3,6 +3,7 @@ // #include "OS_system.h" +#include "syscall.h" ARM_FUNC asm OSIntrMode OS_EnableInterrupts() { mrs r0, cpsr |