diff options
author | Anthony Martin <ality@pbrane.org> | 2014-09-12 01:21:51 -0700 |
---|---|---|
committer | Anthony Martin <ality@pbrane.org> | 2014-09-12 01:21:51 -0700 |
commit | f671f288150424d52f06b316eb28439838f82294 (patch) | |
tree | ff4cb3dc01f760d7635bb7b96e84deddf8070a4e /src/runtime/sys_plan9_amd64.s | |
parent | 1e5353f0b4743d02c1ba99f750094049ebdd05dc (diff) | |
download | go-f671f288150424d52f06b316eb28439838f82294.tar.gz |
runtime: save correct pid for new m's on plan9/amd64
The pid field in the Tos structure is a 32-bit value.
Loading a 64-bit word also brings in the next field
which is used for the profiling clock.
LGTM=0intro, aram
R=rsc, 0intro, aram
CC=golang-codereviews, mischief
https://codereview.appspot.com/139560044
Diffstat (limited to 'src/runtime/sys_plan9_amd64.s')
-rw-r--r-- | src/runtime/sys_plan9_amd64.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sys_plan9_amd64.s b/src/runtime/sys_plan9_amd64.s index b0e186460..3a96c2bf9 100644 --- a/src/runtime/sys_plan9_amd64.s +++ b/src/runtime/sys_plan9_amd64.s @@ -149,7 +149,7 @@ TEXT runtime·tstart_plan9(SB),NOSPLIT,$0 // Initialize procid from TOS struct. MOVQ _tos(SB), AX - MOVQ 64(AX), AX + MOVL 64(AX), AX MOVQ AX, m_procid(CX) // save pid as m->procid // Finally, initialize g. |