diff options
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 |