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