1
0
mirror of https://github.com/golang/go synced 2024-11-26 18:16:48 -07:00

runtime: fix build on openbsd, plan9

R=golang-dev
CC=golang-dev
https://golang.org/cl/7438052
This commit is contained in:
Russ Cox 2013-03-01 11:57:50 -05:00
parent 2202663a93
commit 08a1631cda
2 changed files with 4 additions and 4 deletions

View File

@ -131,8 +131,8 @@ runtime·newosproc(M *mp, void *stk)
if(0) {
runtime·printf(
"newosproc stk=%p m=%p g=%p fn=%p id=%d/%d ostk=%p\n",
stk, mp, mp->g0, fn, mp->id, (int32)mp->tls[0], &mp);
"newosproc stk=%p m=%p g=%p id=%d/%d ostk=%p\n",
stk, mp, mp->g0, mp->id, (int32)mp->tls[0], &mp);
}
mp->tls[0] = mp->id; // so 386 asm can find it

View File

@ -227,8 +227,8 @@ runtime·newosproc(M *mp, void *stk)
{
mp->tls[0] = mp->id; // so 386 asm can find it
if(0){
runtime·printf("newosproc stk=%p m=%p g=%p fn=%p rfork=%p id=%d/%d ostk=%p\n",
stk, mp, mp->g0, fn, runtime·rfork, mp->id, (int32)mp->tls[0], &mp);
runtime·printf("newosproc stk=%p m=%p g=%p rfork=%p id=%d/%d ostk=%p\n",
stk, mp, mp->g0, runtime·rfork, mp->id, (int32)mp->tls[0], &mp);
}
if(runtime·rfork(RFPROC|RFMEM|RFNOWAIT, stk, mp, mp->g0, runtime·mstart) < 0)