Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/dt-getcallpcamd64/getcallerpc.c
#include "u.h" #include "libc.h" uintptr getcallerpc(void *a) { return ((ulong*)a)[-1]; }