aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/linux/amd64
diff options
context:
space:
mode:
authorDevon H. O'Dell <devon.odell@gmail.com>2009-12-08 18:19:30 -0800
committerRuss Cox <rsc@golang.org>2009-12-08 18:19:30 -0800
commit5a4a08fab85c40907c8b840a0cf2d7a374e0c553 (patch)
treed5b2cdf78659212b132fdc8561877155b04e5068 /src/pkg/runtime/linux/amd64
parentcdce7325c80aadb481ed431f0ac847122ff0ea6e (diff)
downloadgo-5a4a08fab85c40907c8b840a0cf2d7a374e0c553.tar.xz
Fix stack on FreeBSD / add stack check across the board
FreeBSD was passing stk as the new thread's stack base, while stk is the top of the stack in go. The added check should cause a trap if this ever comes up in any new ports, or regresses in current ones. R=rsc CC=golang-dev https://golang.org/cl/167055
Diffstat (limited to 'src/pkg/runtime/linux/amd64')
-rw-r--r--src/pkg/runtime/linux/amd64/sys.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/linux/amd64/sys.s b/src/pkg/runtime/linux/amd64/sys.s
index 238a423b13..6565d86de2 100644
--- a/src/pkg/runtime/linux/amd64/sys.s
+++ b/src/pkg/runtime/linux/amd64/sys.s
@@ -149,6 +149,7 @@ TEXT clone(SB),7,$0
MOVQ SI, SP
MOVQ R8, m
MOVQ R9, g
+ CALL stackcheck(SB)
// Initialize m->procid to Linux tid
MOVL $186, AX // gettid