… | |
… | |
124 | * our syscalls return < 0, not == -1, on error. which is good |
124 | * our syscalls return < 0, not == -1, on error. which is good |
125 | * enough for linux aio. |
125 | * enough for linux aio. |
126 | * TODO: arm is also common nowadays, maybe even mips and x86 |
126 | * TODO: arm is also common nowadays, maybe even mips and x86 |
127 | * TODO: after implementing this, it suddenly looks like overkill, but its hard to remove... |
127 | * TODO: after implementing this, it suddenly looks like overkill, but its hard to remove... |
128 | */ |
128 | */ |
129 | #if __GNUC__ && __linux && ECB_AMD64 |
129 | #if __GNUC__ && __linux && ECB_AMD64 && !defined __OPTIMIZE_SIZE__ |
|
|
130 | /* the costly errno access probably kills this for size optimisation */ |
130 | |
131 | |
131 | #define ev_syscall(nr,narg,arg1,arg2,arg3,arg4,arg5) \ |
132 | #define ev_syscall(nr,narg,arg1,arg2,arg3,arg4,arg5) \ |
132 | ({ \ |
133 | ({ \ |
133 | long res; \ |
134 | long res; \ |
134 | register unsigned long r5 __asm__ ("r8" ); \ |
135 | register unsigned long r5 __asm__ ("r8" ); \ |