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