#include <u.h>
#include <libc.h>

ulong
getcallerpc(void *p)
{
	ulong *lp;

	lp = p;

	return lp[-1];
}


syntax highlighted by Code2HTML, v. 0.9.1