summaryrefslogtreecommitdiff
path: root/arm9/lib/include/OS_spinLock.h
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2021-01-08 19:33:39 -0500
committerGitHub <noreply@github.com>2021-01-08 19:33:39 -0500
commit3289261e5aaddcd67f72513de06a72a379854d5c (patch)
tree3af221138ff7d6e8ad56a4b95a6255a0edc3812b /arm9/lib/include/OS_spinLock.h
parentee1f12ce06e865f47511ba200029e0afaafa4255 (diff)
parent1e268426533b6bb78b86e35577c72cd4bb5cbb4c (diff)
Merge pull request #312 from red031000/master
decompile CTRDG_common
Diffstat (limited to 'arm9/lib/include/OS_spinLock.h')
-rw-r--r--arm9/lib/include/OS_spinLock.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arm9/lib/include/OS_spinLock.h b/arm9/lib/include/OS_spinLock.h
index c26e3b9f..09c2cf2c 100644
--- a/arm9/lib/include/OS_spinLock.h
+++ b/arm9/lib/include/OS_spinLock.h
@@ -5,7 +5,11 @@
#include "nitro/OS_spinLock_shared.h"
#include "syscall.h"
-#define OS_LOCK_ID_ERROR (-3)
+#define OS_ReadOwnerOfLockCartridge() OS_ReadOwnerOfLockWord( (OSLockWord *)HW_CTRDG_LOCK_BUF )
+#define OS_MAINP_LOCKED_FLAG 0x40
+#define OS_LOCK_SUCCESS 0
+
+#define OS_LOCK_ID_ERROR (-3)
static inline void OSi_WaitByLoop(void)
{