xref: /inferno-os/os/boot/pc/getcallerpc.c (revision 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a)
1 #include "u.h"
2 #include "lib.h"
3 
4 ulong
getcallerpc(void * x)5 getcallerpc(void *x)
6 {
7 	return (((ulong*)(x))[-1]);
8 }
9