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