diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/getcallerpc-x86_64.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <lib9.h> + +ulong +getcallerpc(void *x) +{ + return (((ulong*)(x))[-1]); +} |