1/* 2 * List of powerpc syscalls. For the meaning of the _SPU suffix see 3 * arch/powerpc/platforms/cell/spu_callbacks.c 4 */ 5 6SYSCALL(restart_syscall) 7SYSCALL(exit) 8PPC_SYS(fork) 9SYSCALL_SPU(read) 10SYSCALL_SPU(write) 11COMPAT_SYS_SPU(open) 12SYSCALL_SPU(close) 13SYSCALL_SPU(waitpid) 14SYSCALL_SPU(creat) 15SYSCALL_SPU(link) 16SYSCALL_SPU(unlink) 17COMPAT_SYS(execve) 18SYSCALL_SPU(chdir) 19COMPAT_SYS_SPU(time) 20SYSCALL_SPU(mknod) 21SYSCALL_SPU(chmod) 22SYSCALL_SPU(lchown) 23SYSCALL(ni_syscall) 24OLDSYS(stat) 25COMPAT_SYS_SPU(lseek) 26SYSCALL_SPU(getpid) 27COMPAT_SYS(mount) 28SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount) 29SYSCALL_SPU(setuid) 30SYSCALL_SPU(getuid) 31COMPAT_SYS_SPU(stime) 32COMPAT_SYS(ptrace) 33SYSCALL_SPU(alarm) 34OLDSYS(fstat) 35SYSCALL(pause) 36COMPAT_SYS(utime) 37SYSCALL(ni_syscall) 38SYSCALL(ni_syscall) 39SYSCALL_SPU(access) 40SYSCALL_SPU(nice) 41SYSCALL(ni_syscall) 42SYSCALL_SPU(sync) 43SYSCALL_SPU(kill) 44SYSCALL_SPU(rename) 45SYSCALL_SPU(mkdir) 46SYSCALL_SPU(rmdir) 47SYSCALL_SPU(dup) 48SYSCALL_SPU(pipe) 49COMPAT_SYS_SPU(times) 50SYSCALL(ni_syscall) 51SYSCALL_SPU(brk) 52SYSCALL_SPU(setgid) 53SYSCALL_SPU(getgid) 54SYSCALL(signal) 55SYSCALL_SPU(geteuid) 56SYSCALL_SPU(getegid) 57SYSCALL(acct) 58SYSCALL(umount) 59SYSCALL(ni_syscall) 60COMPAT_SYS_SPU(ioctl) 61COMPAT_SYS_SPU(fcntl) 62SYSCALL(ni_syscall) 63SYSCALL_SPU(setpgid) 64SYSCALL(ni_syscall) 65SYSX(sys_ni_syscall,sys_olduname,sys_olduname) 66SYSCALL_SPU(umask) 67SYSCALL_SPU(chroot) 68COMPAT_SYS(ustat) 69SYSCALL_SPU(dup2) 70SYSCALL_SPU(getppid) 71SYSCALL_SPU(getpgrp) 72SYSCALL_SPU(setsid) 73SYS32ONLY(sigaction) 74SYSCALL_SPU(sgetmask) 75SYSCALL_SPU(ssetmask) 76SYSCALL_SPU(setreuid) 77SYSCALL_SPU(setregid) 78#define compat_sys_sigsuspend sys_sigsuspend 79SYS32ONLY(sigsuspend) 80SYSX(sys_ni_syscall,compat_sys_sigpending,sys_sigpending) 81SYSCALL_SPU(sethostname) 82COMPAT_SYS_SPU(setrlimit) 83SYSX(sys_ni_syscall,compat_sys_old_getrlimit,sys_old_getrlimit) 84COMPAT_SYS_SPU(getrusage) 85COMPAT_SYS_SPU(gettimeofday) 86COMPAT_SYS_SPU(settimeofday) 87SYSCALL_SPU(getgroups) 88SYSCALL_SPU(setgroups) 89SYSX(sys_ni_syscall,sys_ni_syscall,ppc_select) 90SYSCALL_SPU(symlink) 91OLDSYS(lstat) 92SYSCALL_SPU(readlink) 93SYSCALL(uselib) 94SYSCALL(swapon) 95SYSCALL(reboot) 96SYSX(sys_ni_syscall,compat_sys_old_readdir,sys_old_readdir) 97SYSCALL_SPU(mmap) 98SYSCALL_SPU(munmap) 99COMPAT_SYS_SPU(truncate) 100COMPAT_SYS_SPU(ftruncate) 101SYSCALL_SPU(fchmod) 102SYSCALL_SPU(fchown) 103SYSCALL_SPU(getpriority) 104SYSCALL_SPU(setpriority) 105SYSCALL(ni_syscall) 106COMPAT_SYS(statfs) 107COMPAT_SYS(fstatfs) 108SYSCALL(ni_syscall) 109COMPAT_SYS_SPU(socketcall) 110SYSCALL_SPU(syslog) 111COMPAT_SYS_SPU(setitimer) 112COMPAT_SYS_SPU(getitimer) 113COMPAT_SYS_SPU(newstat) 114COMPAT_SYS_SPU(newlstat) 115COMPAT_SYS_SPU(newfstat) 116SYSX(sys_ni_syscall,sys_uname,sys_uname) 117SYSCALL(ni_syscall) 118SYSCALL_SPU(vhangup) 119SYSCALL(ni_syscall) 120SYSCALL(ni_syscall) 121COMPAT_SYS_SPU(wait4) 122SYSCALL(swapoff) 123COMPAT_SYS_SPU(sysinfo) 124COMPAT_SYS(ipc) 125SYSCALL_SPU(fsync) 126SYS32ONLY(sigreturn) 127PPC_SYS(clone) 128SYSCALL_SPU(setdomainname) 129SYSCALL_SPU(newuname) 130SYSCALL(ni_syscall) 131COMPAT_SYS_SPU(adjtimex) 132SYSCALL_SPU(mprotect) 133SYSX(sys_ni_syscall,compat_sys_sigprocmask,sys_sigprocmask) 134SYSCALL(ni_syscall) 135SYSCALL(init_module) 136SYSCALL(delete_module) 137SYSCALL(ni_syscall) 138SYSCALL(quotactl) 139SYSCALL_SPU(getpgid) 140SYSCALL_SPU(fchdir) 141SYSCALL_SPU(bdflush) 142SYSCALL_SPU(sysfs) 143SYSX_SPU(ppc64_personality,ppc64_personality,sys_personality) 144SYSCALL(ni_syscall) 145SYSCALL_SPU(setfsuid) 146SYSCALL_SPU(setfsgid) 147SYSCALL_SPU(llseek) 148COMPAT_SYS_SPU(getdents) 149SYSX_SPU(sys_select,ppc32_select,sys_select) 150SYSCALL_SPU(flock) 151SYSCALL_SPU(msync) 152COMPAT_SYS_SPU(readv) 153COMPAT_SYS_SPU(writev) 154SYSCALL_SPU(getsid) 155SYSCALL_SPU(fdatasync) 156COMPAT_SYS(sysctl) 157SYSCALL_SPU(mlock) 158SYSCALL_SPU(munlock) 159SYSCALL_SPU(mlockall) 160SYSCALL_SPU(munlockall) 161SYSCALL_SPU(sched_setparam) 162SYSCALL_SPU(sched_getparam) 163SYSCALL_SPU(sched_setscheduler) 164SYSCALL_SPU(sched_getscheduler) 165SYSCALL_SPU(sched_yield) 166SYSCALL_SPU(sched_get_priority_max) 167SYSCALL_SPU(sched_get_priority_min) 168COMPAT_SYS_SPU(sched_rr_get_interval) 169COMPAT_SYS_SPU(nanosleep) 170SYSCALL_SPU(mremap) 171SYSCALL_SPU(setresuid) 172SYSCALL_SPU(getresuid) 173SYSCALL(ni_syscall) 174SYSCALL_SPU(poll) 175SYSCALL(ni_syscall) 176SYSCALL_SPU(setresgid) 177SYSCALL_SPU(getresgid) 178SYSCALL_SPU(prctl) 179COMPAT_SYS(rt_sigreturn) 180COMPAT_SYS(rt_sigaction) 181COMPAT_SYS(rt_sigprocmask) 182COMPAT_SYS(rt_sigpending) 183COMPAT_SYS(rt_sigtimedwait) 184COMPAT_SYS(rt_sigqueueinfo) 185COMPAT_SYS(rt_sigsuspend) 186COMPAT_SYS_SPU(pread64) 187COMPAT_SYS_SPU(pwrite64) 188SYSCALL_SPU(chown) 189SYSCALL_SPU(getcwd) 190SYSCALL_SPU(capget) 191SYSCALL_SPU(capset) 192COMPAT_SYS(sigaltstack) 193SYSX_SPU(sys_sendfile64,compat_sys_sendfile,sys_sendfile) 194SYSCALL(ni_syscall) 195SYSCALL(ni_syscall) 196PPC_SYS(vfork) 197COMPAT_SYS_SPU(getrlimit) 198COMPAT_SYS_SPU(readahead) 199SYS32ONLY(mmap2) 200SYS32ONLY(truncate64) 201SYS32ONLY(ftruncate64) 202SYSX(sys_ni_syscall,sys_stat64,sys_stat64) 203SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64) 204SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64) 205SYSCALL(pciconfig_read) 206SYSCALL(pciconfig_write) 207SYSCALL(pciconfig_iobase) 208SYSCALL(ni_syscall) 209SYSCALL_SPU(getdents64) 210SYSCALL_SPU(pivot_root) 211SYSX(sys_ni_syscall,compat_sys_fcntl64,sys_fcntl64) 212SYSCALL_SPU(madvise) 213SYSCALL_SPU(mincore) 214SYSCALL_SPU(gettid) 215SYSCALL_SPU(tkill) 216SYSCALL_SPU(setxattr) 217SYSCALL_SPU(lsetxattr) 218SYSCALL_SPU(fsetxattr) 219SYSCALL_SPU(getxattr) 220SYSCALL_SPU(lgetxattr) 221SYSCALL_SPU(fgetxattr) 222SYSCALL_SPU(listxattr) 223SYSCALL_SPU(llistxattr) 224SYSCALL_SPU(flistxattr) 225SYSCALL_SPU(removexattr) 226SYSCALL_SPU(lremovexattr) 227SYSCALL_SPU(fremovexattr) 228COMPAT_SYS_SPU(futex) 229COMPAT_SYS_SPU(sched_setaffinity) 230COMPAT_SYS_SPU(sched_getaffinity) 231SYSCALL(ni_syscall) 232SYSCALL(ni_syscall) 233SYS32ONLY(sendfile64) 234COMPAT_SYS_SPU(io_setup) 235SYSCALL_SPU(io_destroy) 236COMPAT_SYS_SPU(io_getevents) 237COMPAT_SYS_SPU(io_submit) 238SYSCALL_SPU(io_cancel) 239SYSCALL(set_tid_address) 240SYSX_SPU(sys_fadvise64,ppc32_fadvise64,sys_fadvise64) 241SYSCALL(exit_group) 242COMPAT_SYS(lookup_dcookie) 243SYSCALL_SPU(epoll_create) 244SYSCALL_SPU(epoll_ctl) 245SYSCALL_SPU(epoll_wait) 246SYSCALL_SPU(remap_file_pages) 247SYSX_SPU(sys_timer_create,compat_sys_timer_create,sys_timer_create) 248COMPAT_SYS_SPU(timer_settime) 249COMPAT_SYS_SPU(timer_gettime) 250SYSCALL_SPU(timer_getoverrun) 251SYSCALL_SPU(timer_delete) 252COMPAT_SYS_SPU(clock_settime) 253COMPAT_SYS_SPU(clock_gettime) 254COMPAT_SYS_SPU(clock_getres) 255COMPAT_SYS_SPU(clock_nanosleep) 256SYSX(ppc64_swapcontext,ppc32_swapcontext,ppc_swapcontext) 257SYSCALL_SPU(tgkill) 258COMPAT_SYS_SPU(utimes) 259COMPAT_SYS_SPU(statfs64) 260COMPAT_SYS_SPU(fstatfs64) 261SYSX(sys_ni_syscall,ppc_fadvise64_64,ppc_fadvise64_64) 262PPC_SYS_SPU(rtas) 263OLDSYS(debug_setcontext) 264SYSCALL(ni_syscall) 265COMPAT_SYS(migrate_pages) 266COMPAT_SYS(mbind) 267COMPAT_SYS(get_mempolicy) 268COMPAT_SYS(set_mempolicy) 269COMPAT_SYS(mq_open) 270SYSCALL(mq_unlink) 271COMPAT_SYS(mq_timedsend) 272COMPAT_SYS(mq_timedreceive) 273COMPAT_SYS(mq_notify) 274COMPAT_SYS(mq_getsetattr) 275COMPAT_SYS(kexec_load) 276SYSCALL(add_key) 277SYSCALL(request_key) 278COMPAT_SYS(keyctl) 279COMPAT_SYS(waitid) 280SYSCALL(ioprio_set) 281SYSCALL(ioprio_get) 282SYSCALL(inotify_init) 283SYSCALL(inotify_add_watch) 284SYSCALL(inotify_rm_watch) 285SYSCALL(spu_run) 286SYSCALL(spu_create) 287COMPAT_SYS(pselect6) 288COMPAT_SYS(ppoll) 289SYSCALL_SPU(unshare) 290SYSCALL_SPU(splice) 291SYSCALL_SPU(tee) 292COMPAT_SYS_SPU(vmsplice) 293COMPAT_SYS_SPU(openat) 294SYSCALL_SPU(mkdirat) 295SYSCALL_SPU(mknodat) 296SYSCALL_SPU(fchownat) 297COMPAT_SYS_SPU(futimesat) 298SYSX_SPU(sys_newfstatat,sys_fstatat64,sys_fstatat64) 299SYSCALL_SPU(unlinkat) 300SYSCALL_SPU(renameat) 301SYSCALL_SPU(linkat) 302SYSCALL_SPU(symlinkat) 303SYSCALL_SPU(readlinkat) 304SYSCALL_SPU(fchmodat) 305SYSCALL_SPU(faccessat) 306COMPAT_SYS_SPU(get_robust_list) 307COMPAT_SYS_SPU(set_robust_list) 308COMPAT_SYS_SPU(move_pages) 309SYSCALL_SPU(getcpu) 310COMPAT_SYS(epoll_pwait) 311COMPAT_SYS_SPU(utimensat) 312COMPAT_SYS_SPU(signalfd) 313SYSCALL_SPU(timerfd_create) 314SYSCALL_SPU(eventfd) 315COMPAT_SYS_SPU(sync_file_range2) 316COMPAT_SYS(fallocate) 317SYSCALL(subpage_prot) 318COMPAT_SYS_SPU(timerfd_settime) 319COMPAT_SYS_SPU(timerfd_gettime) 320COMPAT_SYS_SPU(signalfd4) 321SYSCALL_SPU(eventfd2) 322SYSCALL_SPU(epoll_create1) 323SYSCALL_SPU(dup3) 324SYSCALL_SPU(pipe2) 325SYSCALL(inotify_init1) 326SYSCALL_SPU(perf_event_open) 327COMPAT_SYS_SPU(preadv) 328COMPAT_SYS_SPU(pwritev) 329COMPAT_SYS(rt_tgsigqueueinfo) 330SYSCALL(fanotify_init) 331COMPAT_SYS(fanotify_mark) 332SYSCALL_SPU(prlimit64) 333SYSCALL_SPU(socket) 334SYSCALL_SPU(bind) 335SYSCALL_SPU(connect) 336SYSCALL_SPU(listen) 337SYSCALL_SPU(accept) 338SYSCALL_SPU(getsockname) 339SYSCALL_SPU(getpeername) 340SYSCALL_SPU(socketpair) 341SYSCALL_SPU(send) 342SYSCALL_SPU(sendto) 343COMPAT_SYS_SPU(recv) 344COMPAT_SYS_SPU(recvfrom) 345SYSCALL_SPU(shutdown) 346COMPAT_SYS_SPU(setsockopt) 347COMPAT_SYS_SPU(getsockopt) 348COMPAT_SYS_SPU(sendmsg) 349COMPAT_SYS_SPU(recvmsg) 350COMPAT_SYS_SPU(recvmmsg) 351SYSCALL_SPU(accept4) 352SYSCALL_SPU(name_to_handle_at) 353COMPAT_SYS_SPU(open_by_handle_at) 354COMPAT_SYS_SPU(clock_adjtime) 355SYSCALL_SPU(syncfs) 356COMPAT_SYS_SPU(sendmmsg) 357SYSCALL_SPU(setns) 358COMPAT_SYS(process_vm_readv) 359COMPAT_SYS(process_vm_writev) 360SYSCALL(finit_module) 361SYSCALL(ni_syscall) /* sys_kcmp */ 362SYSCALL_SPU(sched_setattr) 363SYSCALL_SPU(sched_getattr) 364SYSCALL_SPU(renameat2) 365SYSCALL_SPU(seccomp) 366SYSCALL_SPU(getrandom) 367SYSCALL_SPU(memfd_create) 368SYSCALL_SPU(bpf) 369COMPAT_SYS(execveat) 370PPC64ONLY(switch_endian) 371