1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:14:40 -07:00

runtime: Plan 9, skip calling runtime·ldt0setup.

R=golang-dev
CC=alex.brainman, golang-dev
https://golang.org/cl/4816049
This commit is contained in:
Yuval Pavel Zholkover 2011-07-25 12:25:41 -04:00 committed by Russ Cox
parent 33ff947cac
commit 2aa2ceb873

View File

@ -28,15 +28,18 @@ TEXT _rt0_386(SB),7,$0
TESTL AX, AX
JZ 4(PC)
CALL AX
// skip runtime·ldt0setup(SB) and tls test after initcgo for non-windows
CMPL runtime·iswindows(SB), $0
JEQ ok
// skip runtime·ldt0setup(SB) and tls test on Plan 9 in all cases
CMPL runtime·isplan9(SB), $1
JEQ ok
// set up %gs
CALL runtime·ldt0setup(SB)
// store through it, to make sure it works
CMPL runtime·isplan9(SB), $1
JEQ ok
get_tls(BX)
MOVL $0x123, g(BX)
MOVL runtime·tls0(SB), AX