summaryrefslogtreecommitdiff
path: root/include/MetroTRK
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-02 17:29:19 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-03 13:27:06 -0400
commitf2eabdb6257c09cf2890dac5e9737912728542af (patch)
tree3b46f6787185d65605651a0f48776dc9779ce648 /include/MetroTRK
parenteef1dd840b7cecac28c2e6b0574707b90a37d4e7 (diff)
global: Add rest of Dolphin SDK proper, add MSL, and MetroTRK
Finally, it links properly.
Diffstat (limited to 'include/MetroTRK')
-rw-r--r--include/MetroTRK/dolphin_trk.h8
-rw-r--r--include/MetroTRK/intrinsics.h12
-rw-r--r--include/MetroTRK/mem_TRK.h10
3 files changed, 30 insertions, 0 deletions
diff --git a/include/MetroTRK/dolphin_trk.h b/include/MetroTRK/dolphin_trk.h
new file mode 100644
index 0000000..9cbc683
--- /dev/null
+++ b/include/MetroTRK/dolphin_trk.h
@@ -0,0 +1,8 @@
+#ifndef METROTRK_DOLPHIN_TRK_H
+#define METROTRK_DOLPHIN_TRK_H
+
+#include <Runtime/platform.h>
+
+void EnableMetroTRKInterrupts(void);
+
+#endif
diff --git a/include/MetroTRK/intrinsics.h b/include/MetroTRK/intrinsics.h
new file mode 100644
index 0000000..d9b067f
--- /dev/null
+++ b/include/MetroTRK/intrinsics.h
@@ -0,0 +1,12 @@
+#ifndef METROTRK_INTRINSICS_H
+#define METROTRK_INTRINSICS_H
+
+void __sync(void);
+void __isync(void);
+int __cntlzw(unsigned int);
+float sqrtf__Ff(float);
+float __fnmsubs(float, float, float);
+double __fabs(double);
+float __fabsf(float);
+
+#endif
diff --git a/include/MetroTRK/mem_TRK.h b/include/MetroTRK/mem_TRK.h
new file mode 100644
index 0000000..bd1946a
--- /dev/null
+++ b/include/MetroTRK/mem_TRK.h
@@ -0,0 +1,10 @@
+#ifndef __MEM_TRK_H__
+#define __MEM_TRK_H__
+
+#include <Runtime/platform.h>
+
+SECTION_INIT void* TRK_memcpy(void* dst, const void* src, unsigned long n);
+
+SECTION_INIT void* TRK_memset(void* dst, int val, unsigned long n);
+
+#endif