1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:54:43 -07:00

windows: fix build?

Shot in the dark.

TBR=r
CC=golang-dev
https://golang.org/cl/4126054
This commit is contained in:
Russ Cox 2011-02-02 22:53:10 -05:00
parent 27191b558c
commit 6b93a92ac0
2 changed files with 8 additions and 8 deletions

View 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

View 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)