summaryrefslogtreecommitdiff
path: root/include/SDK/OS
diff options
context:
space:
mode:
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