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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h
index ee8dfea549bc..a5896d94e1ad 100644
--- a/include/asm-arm/unistd.h
+++ b/include/asm-arm/unistd.h
@@ -13,8 +13,6 @@
13#ifndef __ASM_ARM_UNISTD_H 13#ifndef __ASM_ARM_UNISTD_H
14#define __ASM_ARM_UNISTD_H 14#define __ASM_ARM_UNISTD_H
15 15
16#include <linux/linkage.h>
17
18#define __NR_OABI_SYSCALL_BASE 0x900000 16#define __NR_OABI_SYSCALL_BASE 0x900000
19 17
20#if defined(__thumb__) || defined(__ARM_EABI__) 18#if defined(__thumb__) || defined(__ARM_EABI__)
@@ -378,6 +376,9 @@
378#undef __NR_ipc 376#undef __NR_ipc
379#endif 377#endif
380 378
379#ifdef __KERNEL__
380#include <linux/linkage.h>
381
381#define __sys2(x) #x 382#define __sys2(x) #x
382#define __sys1(x) __sys2(x) 383#define __sys1(x) __sys2(x)
383 384
@@ -519,7 +520,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6
519 __syscall_return(type,__res); \ 520 __syscall_return(type,__res); \
520} 521}
521 522
522#ifdef __KERNEL__
523#define __ARCH_WANT_IPC_PARSE_VERSION 523#define __ARCH_WANT_IPC_PARSE_VERSION
524#define __ARCH_WANT_STAT64 524#define __ARCH_WANT_STAT64
525#define __ARCH_WANT_SYS_GETHOSTNAME 525#define __ARCH_WANT_SYS_GETHOSTNAME
@@ -540,7 +540,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6
540#define __ARCH_WANT_OLD_READDIR 540#define __ARCH_WANT_OLD_READDIR
541#define __ARCH_WANT_SYS_SOCKETCALL 541#define __ARCH_WANT_SYS_SOCKETCALL
542#endif 542#endif
543#endif
544 543
545#ifdef __KERNEL_SYSCALLS__ 544#ifdef __KERNEL_SYSCALLS__
546 545
@@ -564,7 +563,7 @@ asmlinkage long sys_rt_sigaction(int sig,
564 struct sigaction __user *oact, 563 struct sigaction __user *oact,
565 size_t sigsetsize); 564 size_t sigsetsize);
566 565
567#endif 566#endif /* __KERNEL_SYSCALLS__ */
568 567
569/* 568/*
570 * "Conditional" syscalls 569 * "Conditional" syscalls
@@ -574,4 +573,5 @@ asmlinkage long sys_rt_sigaction(int sig,
574 */ 573 */
575#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") 574#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
576 575
576#endif /* __KERNEL__ */
577#endif /* __ASM_ARM_UNISTD_H */ 577#endif /* __ASM_ARM_UNISTD_H */