]> code.ossystems Code Review - openembedded-core.git/commit
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:41:19 +0000 (15:41 +0000)
commit0d8f50c33e5ff71dc17121b5c293718a8ad602bd
tree3fd49e9be5f267a55c0ff9eb09b1933a43761152
parentdc7d181ab03ceab87a24d932130109003334dbf8
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

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