1 Description: Fix mips/mipsel syscall wrappers to return correct error values.
2 Author: Jurica Stanojkovic <Jurica.Stanojkovic@rt-rk.com>
4 Last-Update: 2012-09-24
7 diff -upNr a/src/syscall-mips.h b/src/syscall-mips.h
8 --- a/src/syscall-mips.h 2012-09-13 11:46:35.652286733 +0200
9 +++ b/src/syscall-mips.h 2012-09-13 16:09:17.964407909 +0200
10 @@ -76,7 +76,7 @@ type fname(atype a) \
15 + return (type) 0 - __v0; \
18 #define io_syscall2(type,fname,sname,atype,a,btype,b) \
19 @@ -100,7 +100,7 @@ type fname(atype a, btype b) \
24 + return (type) 0 - __v0; \
27 #define io_syscall3(type,fname,sname,atype,a,btype,b,ctype,c) \
28 @@ -125,7 +125,7 @@ type fname(atype a, btype b, ctype c) \
33 + return (type) 0 - __v0; \
36 #define io_syscall4(type,fname,sname,atype,a,btype,b,ctype,c,dtype,d) \
37 @@ -150,7 +150,7 @@ type fname(atype a, btype b, ctype c, dt
42 + return (type) 0 - __v0; \
45 #if (_MIPS_SIM == _MIPS_SIM_ABI32)
46 @@ -186,7 +186,7 @@ type fname(atype a, btype b, ctype c, dt
51 + return (type) 0 - __v0; \
54 #endif /* (_MIPS_SIM == _MIPS_SIM_ABI32) */
55 @@ -216,7 +216,7 @@ type fname (atype a,btype b,ctype c,dtyp
60 + return (type) 0 - __v0; \
63 #endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */