1# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 2# 3# system call numbers and entry vectors for powerpc 4# 5# The format is: 6# <number> <abi> <name> <entry point> <compat entry point> 7# 8# The <abi> can be common, spu, nospu, 64, or 32 for this file. 9# 100 nospu restart_syscall sys_restart_syscall 111 nospu exit sys_exit 122 nospu fork ppc_fork 133 common read sys_read 144 common write sys_write 155 common open sys_open compat_sys_open 166 common close sys_close 177 common waitpid sys_waitpid 188 common creat sys_creat 199 common link sys_link 2010 common unlink sys_unlink 2111 nospu execve sys_execve compat_sys_execve 2212 common chdir sys_chdir 2313 common time sys_time compat_sys_time 2414 common mknod sys_mknod 2515 common chmod sys_chmod 2616 common lchown sys_lchown 2717 common break sys_ni_syscall 2818 32 oldstat sys_stat sys_ni_syscall 2918 64 oldstat sys_ni_syscall 3018 spu oldstat sys_ni_syscall 3119 common lseek sys_lseek compat_sys_lseek 3220 common getpid sys_getpid 3321 nospu mount sys_mount compat_sys_mount 3422 32 umount sys_oldumount 3522 64 umount sys_ni_syscall 3622 spu umount sys_ni_syscall 3723 common setuid sys_setuid 3824 common getuid sys_getuid 3925 common stime sys_stime compat_sys_stime 4026 nospu ptrace sys_ptrace compat_sys_ptrace 4127 common alarm sys_alarm 4228 32 oldfstat sys_fstat sys_ni_syscall 4328 64 oldfstat sys_ni_syscall 4428 spu oldfstat sys_ni_syscall 4529 nospu pause sys_pause 4630 nospu utime sys_utime compat_sys_utime 4731 common stty sys_ni_syscall 4832 common gtty sys_ni_syscall 4933 common access sys_access 5034 common nice sys_nice 5135 common ftime sys_ni_syscall 5236 common sync sys_sync 5337 common kill sys_kill 5438 common rename sys_rename 5539 common mkdir sys_mkdir 5640 common rmdir sys_rmdir 5741 common dup sys_dup 5842 common pipe sys_pipe 5943 common times sys_times compat_sys_times 6044 common prof sys_ni_syscall 6145 common brk sys_brk 6246 common setgid sys_setgid 6347 common getgid sys_getgid 6448 nospu signal sys_signal 6549 common geteuid sys_geteuid 6650 common getegid sys_getegid 6751 nospu acct sys_acct 6852 nospu umount2 sys_umount 6953 common lock sys_ni_syscall 7054 common ioctl sys_ioctl compat_sys_ioctl 7155 common fcntl sys_fcntl compat_sys_fcntl 7256 common mpx sys_ni_syscall 7357 common setpgid sys_setpgid 7458 common ulimit sys_ni_syscall 7559 32 oldolduname sys_olduname 7659 64 oldolduname sys_ni_syscall 7759 spu oldolduname sys_ni_syscall 7860 common umask sys_umask 7961 common chroot sys_chroot 8062 nospu ustat sys_ustat compat_sys_ustat 8163 common dup2 sys_dup2 8264 common getppid sys_getppid 8365 common getpgrp sys_getpgrp 8466 common setsid sys_setsid 8567 32 sigaction sys_sigaction compat_sys_sigaction 8667 64 sigaction sys_ni_syscall 8767 spu sigaction sys_ni_syscall 8868 common sgetmask sys_sgetmask 8969 common ssetmask sys_ssetmask 9070 common setreuid sys_setreuid 9171 common setregid sys_setregid 9272 32 sigsuspend sys_sigsuspend 9372 64 sigsuspend sys_ni_syscall 9472 spu sigsuspend sys_ni_syscall 9573 32 sigpending sys_sigpending compat_sys_sigpending 9673 64 sigpending sys_ni_syscall 9773 spu sigpending sys_ni_syscall 9874 common sethostname sys_sethostname 9975 common setrlimit sys_setrlimit compat_sys_setrlimit 10076 32 getrlimit sys_old_getrlimit compat_sys_old_getrlimit 10176 64 getrlimit sys_ni_syscall 10276 spu getrlimit sys_ni_syscall 10377 common getrusage sys_getrusage compat_sys_getrusage 10478 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 10579 common settimeofday sys_settimeofday compat_sys_settimeofday 10680 common getgroups sys_getgroups 10781 common setgroups sys_setgroups 10882 32 select ppc_select sys_ni_syscall 10982 64 select sys_ni_syscall 11082 spu select sys_ni_syscall 11183 common symlink sys_symlink 11284 32 oldlstat sys_lstat sys_ni_syscall 11384 64 oldlstat sys_ni_syscall 11484 spu oldlstat sys_ni_syscall 11585 common readlink sys_readlink 11686 nospu uselib sys_uselib 11787 nospu swapon sys_swapon 11888 nospu reboot sys_reboot 11989 32 readdir sys_old_readdir compat_sys_old_readdir 12089 64 readdir sys_ni_syscall 12189 spu readdir sys_ni_syscall 12290 common mmap sys_mmap 12391 common munmap sys_munmap 12492 common truncate sys_truncate compat_sys_truncate 12593 common ftruncate sys_ftruncate compat_sys_ftruncate 12694 common fchmod sys_fchmod 12795 common fchown sys_fchown 12896 common getpriority sys_getpriority 12997 common setpriority sys_setpriority 13098 common profil sys_ni_syscall 13199 nospu statfs sys_statfs compat_sys_statfs 132100 nospu fstatfs sys_fstatfs compat_sys_fstatfs 133101 common ioperm sys_ni_syscall 134102 common socketcall sys_socketcall compat_sys_socketcall 135103 common syslog sys_syslog 136104 common setitimer sys_setitimer compat_sys_setitimer 137105 common getitimer sys_getitimer compat_sys_getitimer 138106 common stat sys_newstat compat_sys_newstat 139107 common lstat sys_newlstat compat_sys_newlstat 140108 common fstat sys_newfstat compat_sys_newfstat 141109 32 olduname sys_uname 142109 64 olduname sys_ni_syscall 143109 spu olduname sys_ni_syscall 144110 common iopl sys_ni_syscall 145111 common vhangup sys_vhangup 146112 common idle sys_ni_syscall 147113 common vm86 sys_ni_syscall 148114 common wait4 sys_wait4 compat_sys_wait4 149115 nospu swapoff sys_swapoff 150116 common sysinfo sys_sysinfo compat_sys_sysinfo 151117 nospu ipc sys_ipc compat_sys_ipc 152118 common fsync sys_fsync 153119 32 sigreturn sys_sigreturn compat_sys_sigreturn 154119 64 sigreturn sys_ni_syscall 155119 spu sigreturn sys_ni_syscall 156120 nospu clone ppc_clone 157121 common setdomainname sys_setdomainname 158122 common uname sys_newuname 159123 common modify_ldt sys_ni_syscall 160124 common adjtimex sys_adjtimex compat_sys_adjtimex 161125 common mprotect sys_mprotect 162126 32 sigprocmask sys_sigprocmask compat_sys_sigprocmask 163126 64 sigprocmask sys_ni_syscall 164126 spu sigprocmask sys_ni_syscall 165127 common create_module sys_ni_syscall 166128 nospu init_module sys_init_module 167129 nospu delete_module sys_delete_module 168130 common get_kernel_syms sys_ni_syscall 169131 nospu quotactl sys_quotactl 170132 common getpgid sys_getpgid 171133 common fchdir sys_fchdir 172134 common bdflush sys_bdflush 173135 common sysfs sys_sysfs 174136 32 personality sys_personality ppc64_personality 175136 64 personality ppc64_personality 176136 spu personality ppc64_personality 177137 common afs_syscall sys_ni_syscall 178138 common setfsuid sys_setfsuid 179139 common setfsgid sys_setfsgid 180140 common _llseek sys_llseek 181141 common getdents sys_getdents compat_sys_getdents 182142 common _newselect sys_select compat_sys_select 183143 common flock sys_flock 184144 common msync sys_msync 185145 common readv sys_readv compat_sys_readv 186146 common writev sys_writev compat_sys_writev 187147 common getsid sys_getsid 188148 common fdatasync sys_fdatasync 189149 nospu _sysctl sys_sysctl compat_sys_sysctl 190150 common mlock sys_mlock 191151 common munlock sys_munlock 192152 common mlockall sys_mlockall 193153 common munlockall sys_munlockall 194154 common sched_setparam sys_sched_setparam 195155 common sched_getparam sys_sched_getparam 196156 common sched_setscheduler sys_sched_setscheduler 197157 common sched_getscheduler sys_sched_getscheduler 198158 common sched_yield sys_sched_yield 199159 common sched_get_priority_max sys_sched_get_priority_max 200160 common sched_get_priority_min sys_sched_get_priority_min 201161 common sched_rr_get_interval sys_sched_rr_get_interval compat_sys_sched_rr_get_interval 202162 common nanosleep sys_nanosleep compat_sys_nanosleep 203163 common mremap sys_mremap 204164 common setresuid sys_setresuid 205165 common getresuid sys_getresuid 206166 common query_module sys_ni_syscall 207167 common poll sys_poll 208168 common nfsservctl sys_ni_syscall 209169 common setresgid sys_setresgid 210170 common getresgid sys_getresgid 211171 common prctl sys_prctl 212172 nospu rt_sigreturn sys_rt_sigreturn compat_sys_rt_sigreturn 213173 nospu rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 214174 nospu rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 215175 nospu rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 216176 nospu rt_sigtimedwait sys_rt_sigtimedwait compat_sys_rt_sigtimedwait 217177 nospu rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 218178 nospu rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 219179 common pread64 sys_pread64 compat_sys_pread64 220180 common pwrite64 sys_pwrite64 compat_sys_pwrite64 221181 common chown sys_chown 222182 common getcwd sys_getcwd 223183 common capget sys_capget 224184 common capset sys_capset 225185 nospu sigaltstack sys_sigaltstack compat_sys_sigaltstack 226186 32 sendfile sys_sendfile compat_sys_sendfile 227186 64 sendfile sys_sendfile64 228186 spu sendfile sys_sendfile64 229187 common getpmsg sys_ni_syscall 230188 common putpmsg sys_ni_syscall 231189 nospu vfork ppc_vfork 232190 common ugetrlimit sys_getrlimit compat_sys_getrlimit 233191 common readahead sys_readahead compat_sys_readahead 234192 32 mmap2 sys_mmap2 compat_sys_mmap2 235193 32 truncate64 sys_truncate64 compat_sys_truncate64 236194 32 ftruncate64 sys_ftruncate64 compat_sys_ftruncate64 237195 32 stat64 sys_stat64 238196 32 lstat64 sys_lstat64 239197 32 fstat64 sys_fstat64 240198 nospu pciconfig_read sys_pciconfig_read 241199 nospu pciconfig_write sys_pciconfig_write 242200 nospu pciconfig_iobase sys_pciconfig_iobase 243201 common multiplexer sys_ni_syscall 244202 common getdents64 sys_getdents64 245203 common pivot_root sys_pivot_root 246204 32 fcntl64 sys_fcntl64 compat_sys_fcntl64 247205 common madvise sys_madvise 248206 common mincore sys_mincore 249207 common gettid sys_gettid 250208 common tkill sys_tkill 251209 common setxattr sys_setxattr 252210 common lsetxattr sys_lsetxattr 253211 common fsetxattr sys_fsetxattr 254212 common getxattr sys_getxattr 255213 common lgetxattr sys_lgetxattr 256214 common fgetxattr sys_fgetxattr 257215 common listxattr sys_listxattr 258216 common llistxattr sys_llistxattr 259217 common flistxattr sys_flistxattr 260218 common removexattr sys_removexattr 261219 common lremovexattr sys_lremovexattr 262220 common fremovexattr sys_fremovexattr 263221 common futex sys_futex compat_sys_futex 264222 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 265223 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 266# 224 unused 267225 common tuxcall sys_ni_syscall 268226 32 sendfile64 sys_sendfile64 compat_sys_sendfile64 269227 common io_setup sys_io_setup compat_sys_io_setup 270228 common io_destroy sys_io_destroy 271229 common io_getevents sys_io_getevents compat_sys_io_getevents 272230 common io_submit sys_io_submit compat_sys_io_submit 273231 common io_cancel sys_io_cancel 274232 nospu set_tid_address sys_set_tid_address 275233 common fadvise64 sys_fadvise64 ppc32_fadvise64 276234 nospu exit_group sys_exit_group 277235 nospu lookup_dcookie sys_lookup_dcookie compat_sys_lookup_dcookie 278236 common epoll_create sys_epoll_create 279237 common epoll_ctl sys_epoll_ctl 280238 common epoll_wait sys_epoll_wait 281239 common remap_file_pages sys_remap_file_pages 282240 common timer_create sys_timer_create compat_sys_timer_create 283241 common timer_settime sys_timer_settime compat_sys_timer_settime 284242 common timer_gettime sys_timer_gettime compat_sys_timer_gettime 285243 common timer_getoverrun sys_timer_getoverrun 286244 common timer_delete sys_timer_delete 287245 common clock_settime sys_clock_settime compat_sys_clock_settime 288246 common clock_gettime sys_clock_gettime compat_sys_clock_gettime 289247 common clock_getres sys_clock_getres compat_sys_clock_getres 290248 common clock_nanosleep sys_clock_nanosleep compat_sys_clock_nanosleep 291249 32 swapcontext ppc_swapcontext ppc32_swapcontext 292249 64 swapcontext ppc64_swapcontext 293249 spu swapcontext sys_ni_syscall 294250 common tgkill sys_tgkill 295251 common utimes sys_utimes compat_sys_utimes 296252 common statfs64 sys_statfs64 compat_sys_statfs64 297253 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 298254 32 fadvise64_64 ppc_fadvise64_64 299254 spu fadvise64_64 sys_ni_syscall 300255 common rtas sys_rtas 301256 32 sys_debug_setcontext sys_debug_setcontext sys_ni_syscall 302256 64 sys_debug_setcontext sys_ni_syscall 303256 spu sys_debug_setcontext sys_ni_syscall 304# 257 reserved for vserver 305258 nospu migrate_pages sys_migrate_pages compat_sys_migrate_pages 306259 nospu mbind sys_mbind compat_sys_mbind 307260 nospu get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 308261 nospu set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 309262 nospu mq_open sys_mq_open compat_sys_mq_open 310263 nospu mq_unlink sys_mq_unlink 311264 nospu mq_timedsend sys_mq_timedsend compat_sys_mq_timedsend 312265 nospu mq_timedreceive sys_mq_timedreceive compat_sys_mq_timedreceive 313266 nospu mq_notify sys_mq_notify compat_sys_mq_notify 314267 nospu mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 315268 nospu kexec_load sys_kexec_load compat_sys_kexec_load 316269 nospu add_key sys_add_key 317270 nospu request_key sys_request_key 318271 nospu keyctl sys_keyctl compat_sys_keyctl 319272 nospu waitid sys_waitid compat_sys_waitid 320273 nospu ioprio_set sys_ioprio_set 321274 nospu ioprio_get sys_ioprio_get 322275 nospu inotify_init sys_inotify_init 323276 nospu inotify_add_watch sys_inotify_add_watch 324277 nospu inotify_rm_watch sys_inotify_rm_watch 325278 nospu spu_run sys_spu_run 326279 nospu spu_create sys_spu_create 327280 nospu pselect6 sys_pselect6 compat_sys_pselect6 328281 nospu ppoll sys_ppoll compat_sys_ppoll 329282 common unshare sys_unshare 330283 common splice sys_splice 331284 common tee sys_tee 332285 common vmsplice sys_vmsplice compat_sys_vmsplice 333286 common openat sys_openat compat_sys_openat 334287 common mkdirat sys_mkdirat 335288 common mknodat sys_mknodat 336289 common fchownat sys_fchownat 337290 common futimesat sys_futimesat compat_sys_futimesat 338291 32 fstatat64 sys_fstatat64 339291 64 newfstatat sys_newfstatat 340291 spu newfstatat sys_newfstatat 341292 common unlinkat sys_unlinkat 342293 common renameat sys_renameat 343294 common linkat sys_linkat 344295 common symlinkat sys_symlinkat 345296 common readlinkat sys_readlinkat 346297 common fchmodat sys_fchmodat 347298 common faccessat sys_faccessat 348299 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 349300 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 350301 common move_pages sys_move_pages compat_sys_move_pages 351302 common getcpu sys_getcpu 352303 nospu epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 353304 common utimensat sys_utimensat compat_sys_utimensat 354305 common signalfd sys_signalfd compat_sys_signalfd 355306 common timerfd_create sys_timerfd_create 356307 common eventfd sys_eventfd 357308 common sync_file_range2 sys_sync_file_range2 compat_sys_sync_file_range2 358309 nospu fallocate sys_fallocate compat_sys_fallocate 359310 nospu subpage_prot sys_subpage_prot 360311 common timerfd_settime sys_timerfd_settime compat_sys_timerfd_settime 361312 common timerfd_gettime sys_timerfd_gettime compat_sys_timerfd_gettime 362313 common signalfd4 sys_signalfd4 compat_sys_signalfd4 363314 common eventfd2 sys_eventfd2 364315 common epoll_create1 sys_epoll_create1 365316 common dup3 sys_dup3 366317 common pipe2 sys_pipe2 367318 nospu inotify_init1 sys_inotify_init1 368319 common perf_event_open sys_perf_event_open 369320 common preadv sys_preadv compat_sys_preadv 370321 common pwritev sys_pwritev compat_sys_pwritev 371322 nospu rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 372323 nospu fanotify_init sys_fanotify_init 373324 nospu fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 374325 common prlimit64 sys_prlimit64 375326 common socket sys_socket 376327 common bind sys_bind 377328 common connect sys_connect 378329 common listen sys_listen 379330 common accept sys_accept 380331 common getsockname sys_getsockname 381332 common getpeername sys_getpeername 382333 common socketpair sys_socketpair 383334 common send sys_send 384335 common sendto sys_sendto 385336 common recv sys_recv compat_sys_recv 386337 common recvfrom sys_recvfrom compat_sys_recvfrom 387338 common shutdown sys_shutdown 388339 common setsockopt sys_setsockopt compat_sys_setsockopt 389340 common getsockopt sys_getsockopt compat_sys_getsockopt 390341 common sendmsg sys_sendmsg compat_sys_sendmsg 391342 common recvmsg sys_recvmsg compat_sys_recvmsg 392343 common recvmmsg sys_recvmmsg compat_sys_recvmmsg 393344 common accept4 sys_accept4 394345 common name_to_handle_at sys_name_to_handle_at 395346 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 396347 common clock_adjtime sys_clock_adjtime compat_sys_clock_adjtime 397348 common syncfs sys_syncfs 398349 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 399350 common setns sys_setns 400351 nospu process_vm_readv sys_process_vm_readv compat_sys_process_vm_readv 401352 nospu process_vm_writev sys_process_vm_writev compat_sys_process_vm_writev 402353 nospu finit_module sys_finit_module 403354 nospu kcmp sys_kcmp 404355 common sched_setattr sys_sched_setattr 405356 common sched_getattr sys_sched_getattr 406357 common renameat2 sys_renameat2 407358 common seccomp sys_seccomp 408359 common getrandom sys_getrandom 409360 common memfd_create sys_memfd_create 410361 common bpf sys_bpf 411362 nospu execveat sys_execveat compat_sys_execveat 412363 32 switch_endian sys_ni_syscall 413363 64 switch_endian ppc_switch_endian 414363 spu switch_endian sys_ni_syscall 415364 common userfaultfd sys_userfaultfd 416365 common membarrier sys_membarrier 417378 nospu mlock2 sys_mlock2 418379 nospu copy_file_range sys_copy_file_range 419380 common preadv2 sys_preadv2 compat_sys_preadv2 420381 common pwritev2 sys_pwritev2 compat_sys_pwritev2 421382 nospu kexec_file_load sys_kexec_file_load 422383 nospu statx sys_statx 423384 nospu pkey_alloc sys_pkey_alloc 424385 nospu pkey_free sys_pkey_free 425386 nospu pkey_mprotect sys_pkey_mprotect 426387 nospu rseq sys_rseq 427388 nospu io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents 428