Commit e26b51b0 authored by Austin Clements's avatar Austin Clements Committed by Brad Fitzpatrick

runtime: use pselect6 for usleep on linux/386

Commit 4dcba023 replaced select with pselect6 on linux/amd64 and
linux/arm, but it turns out the Android emulator uses linux/386. This
makes the equivalent change there, too.

Fixes #20409 more.

Change-Id: If542d6ade06309aab8758d5f5f6edec201ca7670
Reviewed-on: https://go-review.googlesource.com/44011
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent dd61aa55
......@@ -98,15 +98,18 @@ TEXT runtime·usleep(SB),NOSPLIT,$8
MOVL $1000000, CX
DIVL CX
MOVL AX, 0(SP)
MOVL $1000, AX // usec to nsec
MULL DX
MOVL DX, 4(SP)
// select(0, 0, 0, 0, &tv)
MOVL $142, AX
// pselect6(0, 0, 0, 0, &ts, 0)
MOVL $308, AX
MOVL $0, BX
MOVL $0, CX
MOVL $0, DX
MOVL $0, SI
LEAL 0(SP), DI
MOVL $0, BP
INVOKE_SYSCALL
RET
......
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