diff --git a/src/lib9/getcallerpc-x86_64.c b/src/lib9/getcallerpc-x86_64.c new file mode 100644 index 00000000..1367370e --- /dev/null +++ b/src/lib9/getcallerpc-x86_64.c @@ -0,0 +1,7 @@ +#include + +ulong +getcallerpc(void *x) +{ + return (((ulong*)(x))[-1]); +}