aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-03-01 09:24:17 -0500
committerRuss Cox <rsc@golang.org>2013-03-01 09:24:17 -0500
commitd0d7416d3f9065141e1abe85528803afa9217371 (patch)
treec51b11b761324f8fde36da483da0786a376c1bbe /src/pkg/runtime/runtime.h
parentc5f694a5c9d210b83b82f52931e1d46b3e25393d (diff)
downloadgo-d0d7416d3f9065141e1abe85528803afa9217371.tar.xz
runtime: more build fixing
Move the mstartfn into its own field. Simpler, more likely to be correct. R=golang-dev, devon.odell CC=golang-dev https://golang.org/cl/7414046
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 665f15e924..4440808319 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -265,7 +265,8 @@ struct M
uintptr cret; // return value from C
uint64 procid; // for debuggers, but offset not hard-coded
G* gsignal; // signal-handling G
- uint64 tls[4]; // thread-local storage (for x86 extern register)
+ uintptr tls[4]; // thread-local storage (for x86 extern register)
+ void (*mstartfn)(void);
G* curg; // current running goroutine
P* p; // attached P for executing Go code (nil if not executing Go code)
P* nextp;