1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:14:40 -07:00

runtime: fix freebsd crash

FreeBSD, alone among our supported operating systems,
required that usleep not be interrupted.  Don't require that.

Fixes #3217.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5781045
This commit is contained in:
Russ Cox 2012-03-07 15:30:54 -05:00
parent c8981c718b
commit b0beeb1501
2 changed files with 0 additions and 4 deletions

View File

@ -220,8 +220,6 @@ TEXT runtime·usleep(SB),7,$20
MOVL $0, 8(SP) // arg 2 - rmtp
MOVL $240, AX // sys_nanosleep
INT $0x80
JAE 2(PC)
CALL runtime·notok(SB)
RET
/*

View File

@ -205,8 +205,6 @@ TEXT runtime·usleep(SB),7,$16
MOVQ $0, SI // arg 2 - rmtp
MOVL $240, AX // sys_nanosleep
SYSCALL
JCC 2(PC)
CALL runtime·notok(SB)
RET
// set tls base to DI