diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-05-06 14:59:18 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-06 14:59:18 -0400 |
commit | 5047f09b56d0bc3c21aec9cb16de60283da645c6 (patch) | |
tree | 09a07554b933c3bb912ce3bfc0ea7c7e1f16041c /include/asm-arm/unistd.h | |
parent | c0f1fe00c3923135b2c2f443448585482da8a53e (diff) | |
parent | 5528e568a760442e0ec8fd2dea1f0791875a066b (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/asm-arm/unistd.h')
-rw-r--r-- | include/asm-arm/unistd.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h index a5896d94e1a..1e891f860ef 100644 --- a/include/asm-arm/unistd.h +++ b/include/asm-arm/unistd.h | |||
@@ -361,7 +361,7 @@ | |||
361 | /* | 361 | /* |
362 | * The following syscalls are obsolete and no longer available for EABI. | 362 | * The following syscalls are obsolete and no longer available for EABI. |
363 | */ | 363 | */ |
364 | #if defined(__ARM_EABI__) | 364 | #if defined(__ARM_EABI__) && !defined(__KERNEL__) |
365 | #undef __NR_time | 365 | #undef __NR_time |
366 | #undef __NR_umount | 366 | #undef __NR_umount |
367 | #undef __NR_stime | 367 | #undef __NR_stime |
@@ -411,7 +411,8 @@ type name(void) { \ | |||
411 | __asm__ __volatile__ ( \ | 411 | __asm__ __volatile__ ( \ |
412 | __syscall(name) \ | 412 | __syscall(name) \ |
413 | : "=r" (__res_r0) \ | 413 | : "=r" (__res_r0) \ |
414 | : __SYS_REG_LIST() ); \ | 414 | : __SYS_REG_LIST() \ |
415 | : "memory" ); \ | ||
415 | __res = __res_r0; \ | 416 | __res = __res_r0; \ |
416 | __syscall_return(type,__res); \ | 417 | __syscall_return(type,__res); \ |
417 | } | 418 | } |
@@ -425,7 +426,8 @@ type name(type1 arg1) { \ | |||
425 | __asm__ __volatile__ ( \ | 426 | __asm__ __volatile__ ( \ |
426 | __syscall(name) \ | 427 | __syscall(name) \ |
427 | : "=r" (__res_r0) \ | 428 | : "=r" (__res_r0) \ |
428 | : __SYS_REG_LIST( "0" (__r0) ) ); \ | 429 | : __SYS_REG_LIST( "0" (__r0) ) \ |
430 | : "memory" ); \ | ||
429 | __res = __res_r0; \ | 431 | __res = __res_r0; \ |
430 | __syscall_return(type,__res); \ | 432 | __syscall_return(type,__res); \ |
431 | } | 433 | } |
@@ -440,7 +442,8 @@ type name(type1 arg1,type2 arg2) { \ | |||
440 | __asm__ __volatile__ ( \ | 442 | __asm__ __volatile__ ( \ |
441 | __syscall(name) \ | 443 | __syscall(name) \ |
442 | : "=r" (__res_r0) \ | 444 | : "=r" (__res_r0) \ |
443 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1) ) ); \ | 445 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1) ) \ |
446 | : "memory" ); \ | ||
444 | __res = __res_r0; \ | 447 | __res = __res_r0; \ |
445 | __syscall_return(type,__res); \ | 448 | __syscall_return(type,__res); \ |
446 | } | 449 | } |
@@ -457,7 +460,8 @@ type name(type1 arg1,type2 arg2,type3 arg3) { \ | |||
457 | __asm__ __volatile__ ( \ | 460 | __asm__ __volatile__ ( \ |
458 | __syscall(name) \ | 461 | __syscall(name) \ |
459 | : "=r" (__res_r0) \ | 462 | : "=r" (__res_r0) \ |
460 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2) ) ); \ | 463 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2) ) \ |
464 | : "memory" ); \ | ||
461 | __res = __res_r0; \ | 465 | __res = __res_r0; \ |
462 | __syscall_return(type,__res); \ | 466 | __syscall_return(type,__res); \ |
463 | } | 467 | } |
@@ -475,7 +479,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \ | |||
475 | __asm__ __volatile__ ( \ | 479 | __asm__ __volatile__ ( \ |
476 | __syscall(name) \ | 480 | __syscall(name) \ |
477 | : "=r" (__res_r0) \ | 481 | : "=r" (__res_r0) \ |
478 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), "r" (__r3) ) ); \ | 482 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), "r" (__r3) ) \ |
483 | : "memory" ); \ | ||
479 | __res = __res_r0; \ | 484 | __res = __res_r0; \ |
480 | __syscall_return(type,__res); \ | 485 | __syscall_return(type,__res); \ |
481 | } | 486 | } |
@@ -495,7 +500,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) { \ | |||
495 | __syscall(name) \ | 500 | __syscall(name) \ |
496 | : "=r" (__res_r0) \ | 501 | : "=r" (__res_r0) \ |
497 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \ | 502 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \ |
498 | "r" (__r3), "r" (__r4) ) ); \ | 503 | "r" (__r3), "r" (__r4) ) \ |
504 | : "memory" ); \ | ||
499 | __res = __res_r0; \ | 505 | __res = __res_r0; \ |
500 | __syscall_return(type,__res); \ | 506 | __syscall_return(type,__res); \ |
501 | } | 507 | } |
@@ -515,7 +521,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6 | |||
515 | __syscall(name) \ | 521 | __syscall(name) \ |
516 | : "=r" (__res_r0) \ | 522 | : "=r" (__res_r0) \ |
517 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \ | 523 | : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \ |
518 | "r" (__r3), "r" (__r4), "r" (__r5) ) ); \ | 524 | "r" (__r3), "r" (__r4), "r" (__r5) ) \ |
525 | : "memory" ); \ | ||
519 | __res = __res_r0; \ | 526 | __res = __res_r0; \ |
520 | __syscall_return(type,__res); \ | 527 | __syscall_return(type,__res); \ |
521 | } | 528 | } |