summaryrefslogtreecommitdiff
path: root/include/SDK/OS
diff options
context:
space:
mode:
authorMax <34987259+mparisi20@users.noreply.github.com>2020-10-27 23:02:12 -0400
committerGitHub <noreply@github.com>2020-10-27 23:02:12 -0400
commitf13fcff4a5f496e8bc1fa4ff759698d9ac37c478 (patch)
tree5b69a6a087620e6d533822b17c56483de7783ffc /include/SDK/OS
parent52139f47a6c4df33fda98b3be5b140cd48ab218d (diff)
parentf4dbe9a90d572a904d3e0c8b6dae3b120e47ca34 (diff)
Merge pull request #153 from mparisi20/master
decompile code_801DBE90.cpp
Diffstat (limited to 'include/SDK/OS')
-rw-r--r--include/SDK/OS/OSCache.h1
-rw-r--r--include/SDK/OS/OSInterrupt.h15
-rw-r--r--include/SDK/OS/OSSemaphore.h21
3 files changed, 37 insertions, 0 deletions
diff --git a/include/SDK/OS/OSCache.h b/include/SDK/OS/OSCache.h
index a6fb490..75dd2ca 100644
--- a/include/SDK/OS/OSCache.h
+++ b/include/SDK/OS/OSCache.h
@@ -5,6 +5,7 @@
extern "C" {
#endif
+void DCInvalidateRange(void* startAddr, u32 nBytes);
void LCEnable(void);
#define LC_BASE (0xE000 << 16)
#define LCGetBase() ((void*)LC_BASE)
diff --git a/include/SDK/OS/OSInterrupt.h b/include/SDK/OS/OSInterrupt.h
new file mode 100644
index 0000000..700faf6
--- /dev/null
+++ b/include/SDK/OS/OSInterrupt.h
@@ -0,0 +1,15 @@
+#ifndef POKEREVO_OSINTERRUPT_H
+#define POKEREVO_OSINTERRUPT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BOOL OSDisableInterrupts(void);
+void OSRestoreInterrupts(BOOL enable);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_OSINTERRUPT_H
diff --git a/include/SDK/OS/OSSemaphore.h b/include/SDK/OS/OSSemaphore.h
new file mode 100644
index 0000000..46e7e03
--- /dev/null
+++ b/include/SDK/OS/OSSemaphore.h
@@ -0,0 +1,21 @@
+#ifndef POKEREVO_OSSEMAPHORE_H
+#define POKEREVO_OSSEMAPHORE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct OSSemaphore
+{
+ u8 unk0[0x10];
+} OSSemaphore;
+
+s32 OSSignalSemaphore(OSSemaphore* sem);
+void OSInitSemaphore(OSSemaphore* sem, s32 count);
+s32 OSWaitSemaphore(OSSemaphore* sem);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_OSSEMAPHORE_H