ref: 9bec8b1ae32dc666388f767d9770b1eac1186f0a dir: /posix-amd64/getcallerpc.c/
#include "u.h" #include "libc.h" uintptr getcallerpc(void *a) { return ((uintptr*)a)[-1]; }