shithub: purgatorio

ref: 254b07675e1a5348f2a8723f55e6b5b1b18a4721
dir: purgatorio/lib9/getcallerpc-Linux-spim.S

View raw version
#include <sys/regdef.h>
#include <sys/asm.h>

LEAF(getcallerpc)
	.set	noreorder
	addiu	t0,a0,-4
	j	ra
	lw	v0,0(t0)
	.set reorder
	END(getcallerpc)