]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix FreeBSD build
authorRuss Cox <rsc@golang.org>
Wed, 10 Feb 2010 00:54:51 +0000 (16:54 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 10 Feb 2010 00:54:51 +0000 (16:54 -0800)
stab in the dark but plausible: the kernel does try to
return time zone information.
http://fxr.watson.org/fxr/source/kern/kern_time.c?v=FREEBSD8#L421

R=iant
CC=golang-dev
https://golang.org/cl/206053

src/pkg/runtime/freebsd/amd64/sys.s

index 02c3e91436bbc5280b2abe9ad16ac21f493bd5c5..6fc96a0be3effd0395671532bd23f457e5435c82 100644 (file)
@@ -61,6 +61,7 @@ TEXT  write(SB),7,$-8
 TEXT gettime(SB), 7, $32
        MOVL    $116, AX
        LEAQ    8(SP), DI
+       MOVQ    $0, SI
        SYSCALL
 
        MOVQ    8(SP), BX       // sec