mirror of
https://github.com/golang/go
synced 2024-11-25 01:08:02 -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:
parent
6e4ddc6872
commit
dff5535aaa
@ -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
|
||||
|
@ -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
|
||||
|
@ -154,9 +154,3 @@ runtime·sigpanic(void)
|
||||
}
|
||||
runtime·panicstring(runtime·sigtab[g->sig].name);
|
||||
}
|
||||
|
||||
// TODO: fill this in properly.
|
||||
void
|
||||
runtime·osyield(void)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user