summaryrefslogtreecommitdiff
path: root/lib9
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2009-04-01 22:54:06 +0000
committerCharles.Forsyth <devnull@localhost>2009-04-01 22:54:06 +0000
commit4eb166cf184c1f102fb79e31b1465ea3e2021c39 (patch)
tree0e1bd8c059324d5cb99d625a67398e48a9ffce95 /lib9
parenta9b1d9c7f57ec21ff8be147f5c949966b966e519 (diff)
20090401-2350
Diffstat (limited to 'lib9')
-rw-r--r--lib9/getcallerpc-Linux-spim.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib9/getcallerpc-Linux-spim.S b/lib9/getcallerpc-Linux-spim.S
new file mode 100644
index 00000000..f3109864
--- /dev/null
+++ b/lib9/getcallerpc-Linux-spim.S
@@ -0,0 +1,10 @@
+#include <sys/regdef.h>
+#include <sys/asm.h>
+
+LEAF(getcallerpc)
+ .set noreorder
+ addiu t0,a0,-4
+ j ra
+ lw v0,0(t0)
+ .set reorder
+ END(getcallerpc)