]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: GS already set up by setldt in Linux/386; remove duplicate
authorDevon H. O'Dell <devon.odell@gmail.com>
Thu, 14 Jan 2010 01:50:12 +0000 (17:50 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 14 Jan 2010 01:50:12 +0000 (17:50 -0800)
R=rsc
CC=golang-dev
https://golang.org/cl/186146

src/pkg/runtime/linux/386/sys.s

index f734a68338e4b1202e8e114a10088c0956e5e5c7..49b829a6aef4ff2f31a67550dc614a88395a804d 100644 (file)
@@ -146,9 +146,6 @@ TEXT clone(SB),7,$0
        POPL    AX
        POPL    AX
        POPAL
-       SHLL    $3, DI  // segment# is ldt*8 + 7 (different 7 than above)
-       ADDL    $7, DI
-       MOVW    DI, GS
 
        // Now segment is established.  Initialize m, g.
        get_tls(AX)