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
2 files changed, 16 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..9bb3bda
--- /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
+
+void OSDisableInterrupts(void);
+void OSRestoreInterrupts(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_OSINTERRUPT_H