]> Cypherpunks repositories - gostls13.git/commit
Fix stack on FreeBSD / add stack check across the board
authorDevon H. O'Dell <devon.odell@gmail.com>
Wed, 9 Dec 2009 02:19:30 +0000 (18:19 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 9 Dec 2009 02:19:30 +0000 (18:19 -0800)
commit5a4a08fab85c40907c8b840a0cf2d7a374e0c553
treed5b2cdf78659212b132fdc8561877155b04e5068
parentcdce7325c80aadb481ed431f0ac847122ff0ea6e
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
src/pkg/runtime/386/asm.s
src/pkg/runtime/amd64/asm.s
src/pkg/runtime/darwin/386/sys.s
src/pkg/runtime/freebsd/386/sys.s
src/pkg/runtime/freebsd/amd64/sys.s
src/pkg/runtime/freebsd/thread.c
src/pkg/runtime/linux/386/sys.s
src/pkg/runtime/linux/amd64/sys.s