]> Cypherpunks repositories - gostls13.git/commitdiff
freebsd: Add stubs for runtime·osyield and runtime·usleep.
authorDavid Symonds <dsymonds@golang.org>
Fri, 30 Sep 2011 23:39:10 +0000 (16:39 -0700)
committerDavid Symonds <dsymonds@golang.org>
Fri, 30 Sep 2011 23:39:10 +0000 (16:39 -0700)
These don't do anything useful; they are just here to fix the build.

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

src/pkg/runtime/freebsd/386/sys.s
src/pkg/runtime/freebsd/amd64/sys.s
src/pkg/runtime/freebsd/thread.c

index 765e2fcc40e3f32c8b256eb0ed11f2dd86b39f33..4c0b4e41a11dc30a70e92ddad58f1ff88e3cbd4e 100644 (file)
@@ -174,6 +174,10 @@ TEXT runtime·sigaltstack(SB),7,$0
        CALL    runtime·notok(SB)
        RET
 
+// TODO: Implement usleep
+TEXT runtime·usleep(SB),7,$0
+       RET
+
 /*
 descriptor entry format for system call
 is the native machine format, ugly as it is:
index c5cc082e4d127ab516e5b8b379b771d0a803e32c..e973b520cf740410ac2e46071cb4a3b89f171884 100644 (file)
@@ -169,6 +169,10 @@ TEXT runtime·sigaltstack(SB),7,$-8
        CALL    runtime·notok(SB)
        RET
 
+// TODO: Implement usleep
+TEXT runtime·usleep(SB),7,$0
+       RET
+
 // set tls base to DI
 TEXT runtime·settls(SB),7,$8
        ADDQ    $16, DI // adjust for ELF: wants to use -16(FS) and -8(FS) for g and m
index f8c550f5780e4871d7f4e450c72c92a11a90c515..3c7d7bc39322fc555f4b2d9cf0d85552795e7b58 100644 (file)
@@ -199,3 +199,9 @@ runtime·sigpanic(void)
        }
        runtime·panicstring(runtime·sigtab[g->sig].name);
 }
+
+// TODO: fill this in properly.
+void
+runtime·osyield(void)
+{
+}