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