]> Cypherpunks repositories - gostls13.git/commit
runtime: check error codes for arm64 system calls
authorKeith Randall <khr@golang.org>
Tue, 21 Apr 2015 22:47:58 +0000 (15:47 -0700)
committerKeith Randall <khr@golang.org>
Wed, 22 Apr 2015 02:30:22 +0000 (02:30 +0000)
commit3a56aa0d3eb14aed7829c41df47b653a2f5c16f7
tree2d1e56a48303f2c2c7327f744938a24dd1a81436
parenta76099f0d9699ee0017951a541197bdaa2c2d112
runtime: check error codes for arm64 system calls

Unlike linux arm32, linux arm64 does not set the condition codes to indicate
whether a system call failed or not.  We must check if the return value
is in the error code range (the same as amd64 does).

Fixes runtime.TestBadOpen test.

Change-Id: I97a8b0a17b5f002a3215c535efa91d199cee3309
Reviewed-on: https://go-review.googlesource.com/9220
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/sys_linux_arm64.s