aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_amd64_linux.s
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-09-08 19:30:14 -0700
committerRob Pike <r@golang.org>2008-09-08 19:30:14 -0700
commit24838a2df659513371dd0d488d71b594e38f71ea (patch)
tree16c32d7817b7a657f2cddedf375f8c9f9a1750dd /src/runtime/sys_amd64_linux.s
parentffbccb66c2f79ed0f23ad90250c811b3cac9fcee (diff)
downloadgo-24838a2df659513371dd0d488d71b594e38f71ea.tar.xz
fix bug in stack limit calculation - was setting limit reg in wrong place.
R=ken OCL=14981 CL=14981
Diffstat (limited to 'src/runtime/sys_amd64_linux.s')
-rw-r--r--src/runtime/sys_amd64_linux.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/sys_amd64_linux.s b/src/runtime/sys_amd64_linux.s
index 178971b718..2cb6258320 100644
--- a/src/runtime/sys_amd64_linux.s
+++ b/src/runtime/sys_amd64_linux.s
@@ -81,6 +81,7 @@ TEXT sigtramp(SB),7,$24-16
TEXT sys·mmap(SB),7,$0-32
MOVQ 8(SP), DI
+ MOVQ $0, SI
MOVL 16(SP), SI
MOVL 20(SP), DX
MOVL 24(SP), R10
@@ -103,7 +104,7 @@ TEXT sys·mmap(SB),7,$0-32
RET
TEXT notok(SB),7,$0
- MOVL $0xf1, BP
+ MOVQ $0xf1, BP
MOVQ BP, (BP)
RET