libaio: Fix MIPS system call interface
authorPhil Staub <Phil.Staub@windriver.com>
Thu, 31 Jan 2013 16:35:25 +0000 (08:35 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Feb 2013 15:54:00 +0000 (15:54 +0000)
commit9ef24da29c8cea0fe34d86d4f2d61571b2027a24
treebb37244aa47c5cfc48a72b49cb3ba18b3a389031
parentb62d090221a076f21a608a8b009d9955cb408e9f
libaio: Fix MIPS system call interface

The io_syscallX wrappers in syscall-mips.h discard error return status
by overwriting the value returned in v0 from the system call with -1.

Modify this behavior by returning the negative of the return value on
error (as identified by a3 != 0). This convention is consistent with
the behavior observed in syscall-ppc.h.

For a description of the MIPS system call interface, see:

http://www.linux-mips.org/wiki/Syscall

(From OE-Core rev: 0d8f50c33e5ff71dc17121b5c293718a8ad602bd)

Signed-off-by: Phil Staub <Phil.Staub@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch [new file with mode: 0644]
meta/recipes-extended/libaio/libaio_0.3.109.bb