diff options
Diffstat (limited to 'include/asm-parisc/unistd.h')
-rw-r--r-- | include/asm-parisc/unistd.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/asm-parisc/unistd.h b/include/asm-parisc/unistd.h index 0e1a30be2e30..27bcfad1c3e3 100644 --- a/include/asm-parisc/unistd.h +++ b/include/asm-parisc/unistd.h | |||
@@ -792,15 +792,11 @@ | |||
792 | #define HPUX_GATEWAY_ADDR 0xC0000004 | 792 | #define HPUX_GATEWAY_ADDR 0xC0000004 |
793 | #define LINUX_GATEWAY_ADDR 0x100 | 793 | #define LINUX_GATEWAY_ADDR 0x100 |
794 | 794 | ||
795 | #ifdef __KERNEL__ | ||
795 | #ifndef __ASSEMBLY__ | 796 | #ifndef __ASSEMBLY__ |
796 | 797 | ||
797 | #define SYS_ify(syscall_name) __NR_##syscall_name | 798 | #define SYS_ify(syscall_name) __NR_##syscall_name |
798 | 799 | ||
799 | /* Assume all syscalls are done from PIC code just to be | ||
800 | * safe. The worst case scenario is that you lose a register | ||
801 | * and save/restore r19 across the syscall. */ | ||
802 | #define PIC | ||
803 | |||
804 | #ifndef ASM_LINE_SEP | 800 | #ifndef ASM_LINE_SEP |
805 | # define ASM_LINE_SEP ; | 801 | # define ASM_LINE_SEP ; |
806 | #endif | 802 | #endif |
@@ -934,7 +930,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ | |||
934 | return K_INLINE_SYSCALL(name, 5, arg1, arg2, arg3, arg4, arg5); \ | 930 | return K_INLINE_SYSCALL(name, 5, arg1, arg2, arg3, arg4, arg5); \ |
935 | } | 931 | } |
936 | 932 | ||
937 | #ifdef __KERNEL__ | ||
938 | #define __ARCH_WANT_OLD_READDIR | 933 | #define __ARCH_WANT_OLD_READDIR |
939 | #define __ARCH_WANT_STAT64 | 934 | #define __ARCH_WANT_STAT64 |
940 | #define __ARCH_WANT_SYS_ALARM | 935 | #define __ARCH_WANT_SYS_ALARM |
@@ -956,7 +951,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ | |||
956 | #define __ARCH_WANT_SYS_SIGPENDING | 951 | #define __ARCH_WANT_SYS_SIGPENDING |
957 | #define __ARCH_WANT_SYS_SIGPROCMASK | 952 | #define __ARCH_WANT_SYS_SIGPROCMASK |
958 | #define __ARCH_WANT_SYS_RT_SIGACTION | 953 | #define __ARCH_WANT_SYS_RT_SIGACTION |
959 | #endif | ||
960 | 954 | ||
961 | /* mmap & mmap2 take 6 arguments */ | 955 | /* mmap & mmap2 take 6 arguments */ |
962 | #define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5,type6,arg6) \ | 956 | #define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5,type6,arg6) \ |
@@ -1056,4 +1050,5 @@ asmlinkage long sys_rt_sigaction(int sig, | |||
1056 | */ | 1050 | */ |
1057 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") | 1051 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") |
1058 | 1052 | ||
1053 | #endif /* __KERNEL__ */ | ||
1059 | #endif /* _ASM_PARISC_UNISTD_H_ */ | 1054 | #endif /* _ASM_PARISC_UNISTD_H_ */ |