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