summaryrefslogtreecommitdiff
path: root/lib9/getcallerpc-MacOSX-power.s
blob: d0c7c8aba67f7f02a5a6fe73c96841f92feeb68f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 File: getcallerpc-Darwin-power.s

 getcallerpc() is passed a pointer

 Plan 9 asm:
 
 TEXT	getcallerpc(SB), $-4
	MOVW	0(R1), R3
	RETURN
 
 */

#import <architecture/ppc/asm_help.h>

.text
LABEL(_getcallerpc)
	mflr r3
	blr