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://golang.org/cl/137360043
diff --git a/src/runtime/stubs.go b/src/runtime/stubs.go
index f3af34a..8bae98c 100644
--- a/src/runtime/stubs.go
+++ b/src/runtime/stubs.go
@@ -28,6 +28,7 @@
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 @@
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 @@
// to deferreturn.
// in asm_*.s
func return0()
+
+// thunk to call time.now.
+func timenow() (sec int64, nsec int32)