Commit dff5535a authored by Devon H. O'Dell's avatar Devon H. O'Dell Committed by Mikio Hara

runtime: implement runtime.osyield on FreeBSD 386, amd64

R=rsc, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5689046
parent 6e4ddc68
......@@ -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)
{
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment