shithub: purgatorio

ref: 2cab6c0b2f7ccfad3c7990070ab0917cfd978cf1
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)