]> Cypherpunks repositories - gostls13.git/commit
runtime: fix Plan 9 build
authorAnthony Martin <ality@pbrane.org>
Wed, 5 Oct 2011 16:07:44 +0000 (12:07 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 5 Oct 2011 16:07:44 +0000 (12:07 -0400)
commit528ccdc513b76143154c52ebb9d93b79faeaa0b1
tree6bcb9b41a3e35cf59b68a1bc599d3aeb27e7b5c3
parent319dba47501d3a0966e0d470705532c6474a47bf
runtime: fix Plan 9 build

This change adds the osyield and usleep
functions and code to read the number of
processors from /dev/sysstat.

I also changed SysAlloc to return nil
when brk fails (it was returning -1).

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5177049
src/pkg/runtime/plan9/386/sys.s
src/pkg/runtime/plan9/mem.c
src/pkg/runtime/plan9/os.h
src/pkg/runtime/plan9/thread.c