summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib9/setfcr-Linux-spim.S27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib9/setfcr-Linux-spim.S b/lib9/setfcr-Linux-spim.S
new file mode 100644
index 00000000..9031f628
--- /dev/null
+++ b/lib9/setfcr-Linux-spim.S
@@ -0,0 +1,27 @@
+#include <sys/regdef.h>
+#include <sys/asm.h>
+
+#define FN(x) .type x,%function; .global x; x
+#define ENT
+#define RET jr ra
+
+ .file "setfcr-Linux-spim.S"
+FN(setfcr):
+ ENT
+ mtc1 a0, $31
+ RET
+
+FN(getfcr):
+ ENT
+ mfc1 v0, $31
+ RET
+
+FN(getfsr):
+ ENT
+ mfc1 v0, $31
+ RET
+
+FN(setfsr):
+ ENT
+ mtc1 a0, $31
+ RET