summaryrefslogtreecommitdiff
path: root/lib9/getcallerpc-Linux-spim.S
blob: f3109864f22be02eb396767aa0204e024fc5929f (plain)
1
2
3
4
5
6
7
8
9
10
#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)