Colin Cross
3d19a8319b
bionic: fix __set_errno for arm64 syscalls that return a 64-bit value
...
bionic/libc/arch-arm64/syscalls/read.S ends with:
b.hi __set_errno
ret
END(read)
If __set_errno returns int, it will set w0 to 0xFFFFFFFF, which means
x0 is 0x00000000FFFFFFFF. When interpreted as a ssize_t that is
INT_MAX, not -1.
Change __set_errno to return long, which will cause x0 to be set instead
of w0.
Change-Id: I9f9ea0f2995928d2ea240eb2ff7758ecdf0ff412
2014-02-18 12:11:38 -08:00
..
2014-02-06 20:12:21 -08:00
2014-02-06 20:12:21 -08:00
2013-12-03 18:42:41 -08:00
2013-12-03 18:42:41 -08:00
2013-02-11 16:39:10 -08:00
2013-11-11 15:48:06 -08:00
2012-10-31 14:30:50 -07:00
2014-02-06 20:12:21 -08:00
2014-02-03 16:20:46 -08:00
2013-02-01 14:51:19 -08:00
2014-02-06 20:12:21 -08:00
2014-02-06 20:12:21 -08:00
2013-02-11 16:39:10 -08:00
2014-02-06 20:12:21 -08:00
2014-02-06 20:12:21 -08:00
2014-02-06 20:12:21 -08:00
2013-06-07 14:55:32 -07:00
2014-02-06 20:12:21 -08:00
2013-02-13 13:11:11 -08:00
2014-02-06 20:12:21 -08:00
2012-08-15 15:39:11 -07:00
2013-10-29 14:55:11 -07:00
2013-10-29 14:55:11 -07:00
2014-02-12 19:04:27 -08:00
2014-02-06 20:12:21 -08:00
2013-10-11 16:20:08 -07:00
2014-02-06 20:12:21 -08:00
2013-10-21 19:27:19 -07:00
2014-02-06 20:12:21 -08:00
2013-11-18 19:48:11 -08:00
2014-02-06 20:12:21 -08:00
2013-02-13 14:40:48 -08:00
2014-02-06 20:12:21 -08:00
2014-02-06 20:12:21 -08:00
2014-01-27 16:36:56 -08:00
2014-01-09 11:00:04 -08:00
2014-02-06 20:12:21 -08:00
2014-02-06 20:12:21 -08:00
2013-10-22 12:03:19 -07:00
2013-11-13 13:14:31 -08:00
2013-10-28 13:21:06 -07:00
2014-01-03 14:49:37 -08:00
2014-02-06 20:12:21 -08:00
2013-10-18 13:17:18 -07:00
2014-02-06 20:12:21 -08:00
2014-02-18 12:11:38 -08:00