1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:27:58 -07:00

runtime: implement runtime.osyield on FreeBSD 386, amd64

R=rsc, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5689046
This commit is contained in:
Devon H. O'Dell 2012-02-21 07:32:20 +09:00 committed by Mikio Hara
parent 6e4ddc6872
commit dff5535aaa
3 changed files with 8 additions and 6 deletions

View File

@ -299,5 +299,9 @@ TEXT runtime·sysctl(SB),7,$28
MOVL $0, AX
RET
TEXT runtime·osyield(SB),7,$-4
MOVL $331, AX // sys_sched_yield
INT $0x80
RET
GLOBL runtime·tlsoffset(SB),$4

View File

@ -229,3 +229,7 @@ TEXT runtime·sysctl(SB),7,$0
MOVL $0, AX
RET
TEXT runtime·osyield(SB),7,$-4
MOVL $331, AX // sys_sched_yield
INT $0x80
RET

View File

@ -154,9 +154,3 @@ runtime·sigpanic(void)
}
runtime·panicstring(runtime·sigtab[g->sig].name);
}
// TODO: fill this in properly.
void
runtime·osyield(void)
{
}