diff options
| author | Ken Thompson <ken@golang.org> | 2008-07-24 15:57:30 -0700 |
|---|---|---|
| committer | Ken Thompson <ken@golang.org> | 2008-07-24 15:57:30 -0700 |
| commit | cb9b1038db77198c2b0961634cf161258af2374d (patch) | |
| tree | 3022d7ff1d7ef13403ab81ebc0daa9b6caa23a27 /src/runtime/sys_amd64_linux.s | |
| parent | 485d1bb3ed2fdaaba86e82ebf2dd0ef8b8337c13 (diff) | |
| download | go-cb9b1038db77198c2b0961634cf161258af2374d.tar.xz | |
select
R=r
APPROVED=r
DELTA=638 (433 added, 21 deleted, 184 changed)
OCL=13426
CL=13438
Diffstat (limited to 'src/runtime/sys_amd64_linux.s')
| -rw-r--r-- | src/runtime/sys_amd64_linux.s | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/runtime/sys_amd64_linux.s b/src/runtime/sys_amd64_linux.s index e98ca52456..106159dc8e 100644 --- a/src/runtime/sys_amd64_linux.s +++ b/src/runtime/sys_amd64_linux.s @@ -114,6 +114,12 @@ TEXT sys·memclr(SB),1,$0-16 RET TEXT sys·getcallerpc+0(SB),1,$0 - MOVQ x+0(FP),AX - MOVQ -8(AX),AX + MOVQ x+0(FP),AX // addr of first arg + MOVQ -8(AX),AX // get calling pc + RET + +TEXT sys·setcallerpc+0(SB),1,$0 + MOVQ x+0(FP),AX // addr of first arg + MOVQ x+8(FP), BX + MOVQ BX, -8(AX) // set calling pc RET |
