aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/unistd.h')
-rw-r--r--include/asm-arm/unistd.h39
1 files changed, 32 insertions, 7 deletions
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h
index 65ac305c2d45..cbf39a56dbe7 100644
--- a/include/asm-arm/unistd.h
+++ b/include/asm-arm/unistd.h
@@ -360,6 +360,24 @@
360#define __ARM_NR_usr32 (__ARM_NR_BASE+4) 360#define __ARM_NR_usr32 (__ARM_NR_BASE+4)
361#define __ARM_NR_set_tls (__ARM_NR_BASE+5) 361#define __ARM_NR_set_tls (__ARM_NR_BASE+5)
362 362
363/*
364 * The following syscalls are obsolete and no longer available for EABI.
365 */
366#if defined(__ARM_EABI__) && !defined(__KERNEL__)
367#undef __NR_time
368#undef __NR_umount
369#undef __NR_stime
370#undef __NR_alarm
371#undef __NR_utime
372#undef __NR_getrlimit
373#undef __NR_select
374#undef __NR_readdir
375#undef __NR_mmap
376#undef __NR_socketcall
377#undef __NR_syscall
378#undef __NR_ipc
379#endif
380
363#define __sys2(x) #x 381#define __sys2(x) #x
364#define __sys1(x) __sys2(x) 382#define __sys1(x) __sys2(x)
365 383
@@ -392,7 +410,8 @@ type name(void) { \
392 __asm__ __volatile__ ( \ 410 __asm__ __volatile__ ( \
393 __syscall(name) \ 411 __syscall(name) \
394 : "=r" (__res_r0) \ 412 : "=r" (__res_r0) \
395 : __SYS_REG_LIST() ); \ 413 : __SYS_REG_LIST() \
414 : "memory" ); \
396 __res = __res_r0; \ 415 __res = __res_r0; \
397 __syscall_return(type,__res); \ 416 __syscall_return(type,__res); \
398} 417}
@@ -406,7 +425,8 @@ type name(type1 arg1) { \
406 __asm__ __volatile__ ( \ 425 __asm__ __volatile__ ( \
407 __syscall(name) \ 426 __syscall(name) \
408 : "=r" (__res_r0) \ 427 : "=r" (__res_r0) \
409 : __SYS_REG_LIST( "0" (__r0) ) ); \ 428 : __SYS_REG_LIST( "0" (__r0) ) \
429 : "memory" ); \
410 __res = __res_r0; \ 430 __res = __res_r0; \
411 __syscall_return(type,__res); \ 431 __syscall_return(type,__res); \
412} 432}
@@ -421,7 +441,8 @@ type name(type1 arg1,type2 arg2) { \
421 __asm__ __volatile__ ( \ 441 __asm__ __volatile__ ( \
422 __syscall(name) \ 442 __syscall(name) \
423 : "=r" (__res_r0) \ 443 : "=r" (__res_r0) \
424 : __SYS_REG_LIST( "0" (__r0), "r" (__r1) ) ); \ 444 : __SYS_REG_LIST( "0" (__r0), "r" (__r1) ) \
445 : "memory" ); \
425 __res = __res_r0; \ 446 __res = __res_r0; \
426 __syscall_return(type,__res); \ 447 __syscall_return(type,__res); \
427} 448}
@@ -438,7 +459,8 @@ type name(type1 arg1,type2 arg2,type3 arg3) { \
438 __asm__ __volatile__ ( \ 459 __asm__ __volatile__ ( \
439 __syscall(name) \ 460 __syscall(name) \
440 : "=r" (__res_r0) \ 461 : "=r" (__res_r0) \
441 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2) ) ); \ 462 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2) ) \
463 : "memory" ); \
442 __res = __res_r0; \ 464 __res = __res_r0; \
443 __syscall_return(type,__res); \ 465 __syscall_return(type,__res); \
444} 466}
@@ -456,7 +478,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
456 __asm__ __volatile__ ( \ 478 __asm__ __volatile__ ( \
457 __syscall(name) \ 479 __syscall(name) \
458 : "=r" (__res_r0) \ 480 : "=r" (__res_r0) \
459 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), "r" (__r3) ) ); \ 481 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), "r" (__r3) ) \
482 : "memory" ); \
460 __res = __res_r0; \ 483 __res = __res_r0; \
461 __syscall_return(type,__res); \ 484 __syscall_return(type,__res); \
462} 485}
@@ -476,7 +499,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) { \
476 __syscall(name) \ 499 __syscall(name) \
477 : "=r" (__res_r0) \ 500 : "=r" (__res_r0) \
478 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \ 501 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \
479 "r" (__r3), "r" (__r4) ) ); \ 502 "r" (__r3), "r" (__r4) ) \
503 : "memory" ); \
480 __res = __res_r0; \ 504 __res = __res_r0; \
481 __syscall_return(type,__res); \ 505 __syscall_return(type,__res); \
482} 506}
@@ -496,7 +520,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6
496 __syscall(name) \ 520 __syscall(name) \
497 : "=r" (__res_r0) \ 521 : "=r" (__res_r0) \
498 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \ 522 : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \
499 "r" (__r3), "r" (__r4), "r" (__r5) ) ); \ 523 "r" (__r3), "r" (__r4), "r" (__r5) ) \
524 : "memory" ); \
500 __res = __res_r0; \ 525 __res = __res_r0; \
501 __syscall_return(type,__res); \ 526 __syscall_return(type,__res); \
502} 527}