aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-14 01:23:15 -0500
committerRuss Cox <rsc@golang.org>2012-02-14 01:23:15 -0500
commit1707a9977f2272333b86853c2ac09a3bdba9915e (patch)
tree888a953f75324f9be76a10a3fa7ca1ee3c05956f /src/pkg/runtime/proc.c
parente11632ee0044474d3e767192d6f61e6ab010c48d (diff)
downloadgo-1707a9977f2272333b86853c2ac09a3bdba9915e.tar.xz
runtime: on 386, fix FP control word on all threads, not just initial thread
It is possible that Linux and Windows copy the FP control word from the parent thread when creating a new thread. Empirically, Darwin does not. Reset the FP control world in all cases. Enable the floating-point strconv test. Fixes #2917 (again). R=golang-dev, r, iant CC=golang-dev https://golang.org/cl/5660047
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c
index e008be9677..9a4d205901 100644
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -720,6 +720,7 @@ runtime·mstart(void)
runtime·gosave(&m->g0->sched);
m->g0->sched.pc = (void*)-1; // make sure it is never used
+ runtime·asminit();
runtime·minit();
schedule(nil);
}