code: 9ferno

ref: b548687a8ed1d0a159c9d3f3f921d93bbb56908e
dir: /lib9/getcallerpc-Linux-amd64.c/

View raw version
#include <lib9.h>

uintptr
getcallerpc(void *x)
{
//uintptr *lp;

//	lp = x;

//	return lp[-1];
	return (uintptr) __builtin_return_address(0);
}