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