diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch')
-rw-r--r-- | meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch b/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch new file mode 100644 index 0000000000..022276af83 --- /dev/null +++ b/meta/recipes-extended/libaio/libaio/libaio_fix_for_mips_syscalls.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | Upstream status: Inappropriate [embedded specific] | ||
2 | |||
3 | Signed-off-by: Phil Staub <Phil.Staub@windriver.com> | ||
4 | |||
5 | Index: libaio-0.3.109/src/syscall-mips.h | ||
6 | =================================================================== | ||
7 | --- libaio-0.3.109.orig/src/syscall-mips.h | ||
8 | +++ libaio-0.3.109/src/syscall-mips.h | ||
9 | @@ -76,7 +76,7 @@ type fname(atype a) \ | ||
10 | \ | ||
11 | if (__a3 == 0) \ | ||
12 | return (type) __v0; \ | ||
13 | - return (type) -1; \ | ||
14 | + return (type) (-(__v0)); \ | ||
15 | } | ||
16 | |||
17 | #define io_syscall2(type,fname,sname,atype,a,btype,b) \ | ||
18 | @@ -100,7 +100,7 @@ type fname(atype a, btype b) \ | ||
19 | \ | ||
20 | if (__a3 == 0) \ | ||
21 | return (type) __v0; \ | ||
22 | - return (type) -1; \ | ||
23 | + return (type) (-(__v0)); \ | ||
24 | } | ||
25 | |||
26 | #define io_syscall3(type,fname,sname,atype,a,btype,b,ctype,c) \ | ||
27 | @@ -125,7 +125,7 @@ type fname(atype a, btype b, ctype c) \ | ||
28 | \ | ||
29 | if (__a3 == 0) \ | ||
30 | return (type) __v0; \ | ||
31 | - return (type) -1; \ | ||
32 | + return (type) (-(__v0)); \ | ||
33 | } | ||
34 | |||
35 | #define io_syscall4(type,fname,sname,atype,a,btype,b,ctype,c,dtype,d) \ | ||
36 | @@ -150,7 +150,7 @@ type fname(atype a, btype b, ctype c, dt | ||
37 | \ | ||
38 | if (__a3 == 0) \ | ||
39 | return (type) __v0; \ | ||
40 | - return (type) -1; \ | ||
41 | + return (type) (-(__v0)); \ | ||
42 | } | ||
43 | |||
44 | #if (_MIPS_SIM == _MIPS_SIM_ABI32) | ||
45 | @@ -186,7 +186,7 @@ type fname(atype a, btype b, ctype c, dt | ||
46 | \ | ||
47 | if (__a3 == 0) \ | ||
48 | return (type) __v0; \ | ||
49 | - return (type) -1; \ | ||
50 | + return (type) (-(__v0)); \ | ||
51 | } | ||
52 | |||
53 | #endif /* (_MIPS_SIM == _MIPS_SIM_ABI32) */ | ||
54 | @@ -216,7 +216,7 @@ type fname (atype a,btype b,ctype c,dtyp | ||
55 | \ | ||
56 | if (__a3 == 0) \ | ||
57 | return (type) __v0; \ | ||
58 | - return (type) -1; \ | ||
59 | + return (type) (-(__v0)); \ | ||
60 | } | ||
61 | |||
62 | #endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */ | ||