commit fbfe340af79494ca66926b66237fcac956a4ec62 Author: Haavard Skinnemoen Date: Thu Jul 6 20:08:09 2006 +0200 Wire up 39 new syscalls The following syscalls were added: __NR_vserver 226 __NR_mq_open 227 __NR_mq_unlink 228 __NR_mq_timedsend 229 __NR_mq_timedreceive 230 __NR_mq_notify 231 __NR_mq_getsetattr 232 __NR_kexec_load 233 __NR_waitid 234 __NR_add_key 235 __NR_request_key 236 __NR_keyctl 237 __NR_ioprio_set 238 __NR_ioprio_get 239 __NR_inotify_init 240 __NR_inotify_add_watch 241 __NR_inotify_rm_watch 242 __NR_openat 243 __NR_mkdirat 244 __NR_mknodat 245 __NR_fchownat 246 __NR_futimesat 247 __NR_fstatat64 248 __NR_unlinkat 249 __NR_renameat 250 __NR_linkat 251 __NR_symlinkat 252 __NR_readlinkat 253 __NR_fchmodat 254 __NR_faccessat 255 __NR_pselect6 256 __NR_ppoll 257 __NR_unshare 258 __NR_set_robust_list 259 __NR_get_robust_list 260 __NR_splice 261 __NR_sync_file_range 262 __NR_tee 263 __NR_vmsplice 264 diff --git a/arch/avr32/kernel/syscall-stubs.S b/arch/avr32/kernel/syscall-stubs.S index 405b9f7..7589a9b 100644 --- a/arch/avr32/kernel/syscall-stubs.S +++ b/arch/avr32/kernel/syscall-stubs.S @@ -82,3 +82,21 @@ __sys_recvfrom: rcall sys_recvfrom sub sp, -4 popm pc + + .global __sys_pselect6 + .type __sys_pselect6,@function +__sys_pselect6: + pushm lr + st.w --sp, ARG6 + rcall sys_pselect6 + sub sp, -4 + popm pc + + .global __sys_splice + .type __sys_splice,@function +__sys_splice: + pushm lr + st.w --sp, ARG6 + rcall sys_splice + sub sp, -4 + popm pc diff --git a/arch/avr32/kernel/syscall_table.S b/arch/avr32/kernel/syscall_table.S index 82e5e59..63b2069 100644 --- a/arch/avr32/kernel/syscall_table.S +++ b/arch/avr32/kernel/syscall_table.S @@ -247,4 +247,43 @@ sys_call_table: .long sys_utimes .long sys_fadvise64_64 .long sys_cacheflush /* 225 */ - .long sys_ni_syscall /* r8 will be saturated at nr_syscalls */ + .long sys_ni_syscall /* sys_vserver */ + .long sys_mq_open + .long sys_mq_unlink + .long sys_mq_timedsend + .long sys_mq_timedreceive /* 230 */ + .long sys_mq_notify + .long sys_mq_getsetattr + .long sys_kexec_load + .long sys_waitid + .long sys_add_key /* 235 */ + .long sys_request_key + .long sys_keyctl + .long sys_ioprio_set + .long sys_ioprio_get + .long sys_inotify_init /* 240 */ + .long sys_inotify_add_watch + .long sys_inotify_rm_watch + .long sys_openat + .long sys_mkdirat + .long sys_mknodat /* 245 */ + .long sys_fchownat + .long sys_futimesat + .long sys_fstatat64 + .long sys_unlinkat + .long sys_renameat /* 250 */ + .long sys_linkat + .long sys_symlinkat + .long sys_readlinkat + .long sys_fchmodat + .long sys_faccessat /* 255 */ + .long __sys_pselect6 + .long sys_ppoll + .long sys_unshare + .long sys_set_robust_list + .long sys_get_robust_list /* 260 */ + .long __sys_splice + .long sys_sync_file_range + .long sys_tee + .long sys_vmsplice + .long sys_ni_syscall /* r8 is saturated at nr_syscalls */ diff --git a/include/asm-avr32/unistd.h b/include/asm-avr32/unistd.h index 4164d29..1f528f9 100644 --- a/include/asm-avr32/unistd.h +++ b/include/asm-avr32/unistd.h @@ -239,10 +239,49 @@ #define __NR_tgkill 221 #define __NR_utimes 223 #define __NR_fadvise64_64 224 -/* AVR32-specific syscalls */ #define __NR_cacheflush 225 -#define NR_syscalls 226 +#define __NR_vserver 226 +#define __NR_mq_open 227 +#define __NR_mq_unlink 228 +#define __NR_mq_timedsend 229 +#define __NR_mq_timedreceive 230 +#define __NR_mq_notify 231 +#define __NR_mq_getsetattr 232 +#define __NR_kexec_load 233 +#define __NR_waitid 234 +#define __NR_add_key 235 +#define __NR_request_key 236 +#define __NR_keyctl 237 +#define __NR_ioprio_set 238 +#define __NR_ioprio_get 239 +#define __NR_inotify_init 240 +#define __NR_inotify_add_watch 241 +#define __NR_inotify_rm_watch 242 +#define __NR_openat 243 +#define __NR_mkdirat 244 +#define __NR_mknodat 245 +#define __NR_fchownat 246 +#define __NR_futimesat 247 +#define __NR_fstatat64 248 +#define __NR_unlinkat 249 +#define __NR_renameat 250 +#define __NR_linkat 251 +#define __NR_symlinkat 252 +#define __NR_readlinkat 253 +#define __NR_fchmodat 254 +#define __NR_faccessat 255 +#define __NR_pselect6 256 +#define __NR_ppoll 257 +#define __NR_unshare 258 +#define __NR_set_robust_list 259 +#define __NR_get_robust_list 260 +#define __NR_splice 261 +#define __NR_sync_file_range 262 +#define __NR_tee 263 +#define __NR_vmsplice 264 + +#define NR_syscalls 265 /*