From 9f77e7ea3c677322ff654a121fcc15bc3b9351b8 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 12 Feb 2010 12:49:16 -0800 Subject: [PATCH] runtime: dummy gettime for mingw/386. Fixes #598. R=adg CC=golang-dev https://golang.org/cl/206089 --- src/pkg/runtime/mingw/386/sys.s | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pkg/runtime/mingw/386/sys.s b/src/pkg/runtime/mingw/386/sys.s index 7afbd4039c9..b032b2d45a2 100644 --- a/src/pkg/runtime/mingw/386/sys.s +++ b/src/pkg/runtime/mingw/386/sys.s @@ -85,3 +85,12 @@ TEXT setldt(SB),7,$0 MOVL address+4(FP), CX MOVL CX, 0x2c(FS) RET + +// for now, return 0,0. only used for internal performance monitoring. +TEXT gettime(SB),7,$0 + MOVL sec+0(FP), DI + MOVL $0, (DI) + MOVL $0, 4(DI) // zero extend 32 -> 64 bits + MOVL usec+4(FP), DI + MOVL $0, (DI) + RET