]> Cypherpunks repositories - gostls13.git/commit
runtime: align stack in 386 lib startup before calling C function
authorIan Lance Taylor <iant@golang.org>
Tue, 17 Oct 2017 22:38:13 +0000 (15:38 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 Oct 2017 16:58:14 +0000 (16:58 +0000)
commit48754592e02719437c46f6d1900a313141e14fa6
tree037b15f85174e96e4118dcb987c4772913d2d357
parent4c8e8fc301c798c7150d41e96213a17534092ca0
runtime: align stack in 386 lib startup before calling C function

Fixes Darwin 386 build. It turns out that the Darwin pthread_create
function saves the SSE registers, and therefore requires an aligned stack.
This worked before https://golang.org/cl/70530 because the stack sizes
were chosen to leave the stack aligned.

Change-Id: I911a9e8dcde4e41e595d5ef9b9a1ca733e154de6
Reviewed-on: https://go-review.googlesource.com/71432
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/asm_386.s