1 2 3 4 5 6 7
#include <machine/asm.h> NENTRY(getcallerpc) movl 4(%esp), %eax movl -4(%eax), %eax ret END(getcallerpc)