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