]> Cypherpunks repositories - gostls13.git/commitdiff
windows: fix build?
authorRuss Cox <rsc@golang.org>
Thu, 3 Feb 2011 03:53:10 +0000 (22:53 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 3 Feb 2011 03:53:10 +0000 (22:53 -0500)
Shot in the dark.

TBR=r
CC=golang-dev
https://golang.org/cl/4126054

src/pkg/runtime/386/asm.s
src/pkg/runtime/linux/386/rt0.s

index 63d58260670dbe3b3d600198a13b85b54fcc4c66..74e1df0da471eac3003ce77badf361f69991a221 100644 (file)
@@ -5,6 +5,14 @@
 #include "386/asm.h"
 
 TEXT _rt0_386(SB),7,$0
+       // Linux, Windows start the FPU in extended double precision.
+       // Other operating systems use double precision.
+       // Change to double precision to match them,
+       // and to match other hardware that only has double.
+       PUSHL $0x27F
+       FLDCW   0(SP)
+       POPL AX
+
        // copy arguments forward on an even stack
        MOVL    0(SP), AX               // argc
        LEAL    4(SP), BX               // argv
index 0f82d6a1c77681233fd3bfca5c7fc783e9a3da39..223e6d2ea4f9ebf968b6b5733fd82eadc12d0cc3 100644 (file)
@@ -5,13 +5,5 @@
 // Darwin and Linux use the same linkage to main
 
 TEXT _rt0_386_linux(SB),7,$0
-       // Linux starts the FPU in extended double precision.
-       // Other operating systems use double precision.
-       // Change to double precision to match them,
-       // and to match other hardware that only has double.
-       PUSHL $0x27F
-       FLDCW   0(SP)
-       POPL AX
-
        JMP     _rt0_386(SB)