aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib9/getcallerpc-arm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib9/getcallerpc-arm.c b/src/lib9/getcallerpc-arm.c
new file mode 100644
index 00000000..9bb4a955
--- /dev/null
+++ b/src/lib9/getcallerpc-arm.c
@@ -0,0 +1,8 @@
+#include <lib9.h>
+
+ulong
+getcallerpc(void *x)
+{
+ return ((ulong*)x)[-2];
+}
+