summaryrefslogtreecommitdiff
path: root/src/runtime/stubs.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-09-09 14:32:53 -0700
committerKeith Randall <khr@golang.org>2014-09-09 14:32:53 -0700
commitc6cd0b3047aa3cb22482c12701b31a817df85316 (patch)
tree81b0aef6eb941160731ba278a9a554adce01ba40 /src/runtime/stubs.go
parentc13a6229b6de5d3edf370d5e9c7f847cd2be05c9 (diff)
downloadgo-c6cd0b3047aa3cb22482c12701b31a817df85316.tar.gz
runtime: more cleanups
Move timenow thunk into time.s Move declarations for generic c/asm services into stubs.go LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/137360043
Diffstat (limited to 'src/runtime/stubs.go')
-rw-r--r--src/runtime/stubs.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/stubs.go b/src/runtime/stubs.go
index f3af34a58..8bae98c73 100644
--- a/src/runtime/stubs.go
+++ b/src/runtime/stubs.go
@@ -28,6 +28,7 @@ func getg() *g
func acquirem() *m
func releasem(mp *m)
func gomcache() *mcache
+func readgstatus(*g) uint32 // proc.c
// mcall switches from the g to the g0 stack and invokes fn(g),
// where g is the goroutine that made the call.
@@ -122,6 +123,9 @@ func unlockOSThread()
var hashLoad = loadFactor
// in asm_*.s
+func fastrand1() uint32
+
+// in asm_*.s
//go:noescape
func memeq(a, b unsafe.Pointer, size uintptr) bool
@@ -229,3 +233,6 @@ func rt0_go()
// to deferreturn.
// in asm_*.s
func return0()
+
+// thunk to call time.now.
+func timenow() (sec int64, nsec int32)