Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: generate uapi header and system call table files

System call table generation script must be run to gener-
ate unistd_32/64.h and syscall_table_32/64/c32/spu.h files.
This patch will have changes which will invokes the script.

This patch will generate unistd_32/64.h and syscall_table-
_32/64/c32/spu.h files by the syscall table generation
script invoked by parisc/Makefile and the generated files
against the removed files must be identical.

The generated uapi header file will be included in uapi/-
asm/unistd.h and generated system call table header file
will be included by kernel/systbl.S file.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Firoz Khan and committed by
Michael Ellerman
ab66dcc7 aff85039

+26 -909
+3
arch/powerpc/Makefile
··· 417 417 418 418 archprepare: checkbin 419 419 420 + archheaders: 421 + $(Q)$(MAKE) $(build)=arch/powerpc/kernel/syscalls all 422 + 420 423 ifdef CONFIG_STACKPROTECTOR 421 424 prepare: stack_protector_prepare 422 425
+4
arch/powerpc/include/asm/Kbuild
··· 1 + generated-y += syscall_table_32.h 2 + generated-y += syscall_table_64.h 3 + generated-y += syscall_table_c32.h 4 + generated-y += syscall_table_spu.h 1 5 generic-y += div64.h 2 6 generic-y += export.h 3 7 generic-y += irq_regs.h
-395
arch/powerpc/include/asm/systbl.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - /* 3 - * List of powerpc syscalls. For the meaning of the _SPU suffix see 4 - * arch/powerpc/platforms/cell/spu_callbacks.c 5 - */ 6 - 7 - SYSCALL(restart_syscall) 8 - SYSCALL(exit) 9 - PPC_SYS(fork) 10 - SYSCALL_SPU(read) 11 - SYSCALL_SPU(write) 12 - COMPAT_SYS_SPU(open) 13 - SYSCALL_SPU(close) 14 - SYSCALL_SPU(waitpid) 15 - SYSCALL_SPU(creat) 16 - SYSCALL_SPU(link) 17 - SYSCALL_SPU(unlink) 18 - COMPAT_SYS(execve) 19 - SYSCALL_SPU(chdir) 20 - COMPAT_SYS_SPU(time) 21 - SYSCALL_SPU(mknod) 22 - SYSCALL_SPU(chmod) 23 - SYSCALL_SPU(lchown) 24 - SYSCALL(ni_syscall) 25 - OLDSYS(stat) 26 - COMPAT_SYS_SPU(lseek) 27 - SYSCALL_SPU(getpid) 28 - COMPAT_SYS(mount) 29 - SYSX(sys_ni_syscall,sys_oldumount,sys_oldumount) 30 - SYSCALL_SPU(setuid) 31 - SYSCALL_SPU(getuid) 32 - COMPAT_SYS_SPU(stime) 33 - COMPAT_SYS(ptrace) 34 - SYSCALL_SPU(alarm) 35 - OLDSYS(fstat) 36 - SYSCALL(pause) 37 - COMPAT_SYS(utime) 38 - SYSCALL(ni_syscall) 39 - SYSCALL(ni_syscall) 40 - SYSCALL_SPU(access) 41 - SYSCALL_SPU(nice) 42 - SYSCALL(ni_syscall) 43 - SYSCALL_SPU(sync) 44 - SYSCALL_SPU(kill) 45 - SYSCALL_SPU(rename) 46 - SYSCALL_SPU(mkdir) 47 - SYSCALL_SPU(rmdir) 48 - SYSCALL_SPU(dup) 49 - SYSCALL_SPU(pipe) 50 - COMPAT_SYS_SPU(times) 51 - SYSCALL(ni_syscall) 52 - SYSCALL_SPU(brk) 53 - SYSCALL_SPU(setgid) 54 - SYSCALL_SPU(getgid) 55 - SYSCALL(signal) 56 - SYSCALL_SPU(geteuid) 57 - SYSCALL_SPU(getegid) 58 - SYSCALL(acct) 59 - SYSCALL(umount) 60 - SYSCALL(ni_syscall) 61 - COMPAT_SYS_SPU(ioctl) 62 - COMPAT_SYS_SPU(fcntl) 63 - SYSCALL(ni_syscall) 64 - SYSCALL_SPU(setpgid) 65 - SYSCALL(ni_syscall) 66 - SYSX(sys_ni_syscall,sys_olduname,sys_olduname) 67 - SYSCALL_SPU(umask) 68 - SYSCALL_SPU(chroot) 69 - COMPAT_SYS(ustat) 70 - SYSCALL_SPU(dup2) 71 - SYSCALL_SPU(getppid) 72 - SYSCALL_SPU(getpgrp) 73 - SYSCALL_SPU(setsid) 74 - SYS32ONLY(sigaction) 75 - SYSCALL_SPU(sgetmask) 76 - SYSCALL_SPU(ssetmask) 77 - SYSCALL_SPU(setreuid) 78 - SYSCALL_SPU(setregid) 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 - COMPAT_SPU_NEW(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 - COMPAT_SYS_SPU(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 - SYSCALL_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 - SYSCALL(kexec_file_load) 390 - SYSCALL(statx) 391 - SYSCALL(pkey_alloc) 392 - SYSCALL(pkey_free) 393 - SYSCALL(pkey_mprotect) 394 - SYSCALL(rseq) 395 - COMPAT_SYS(io_pgetevents)
+2
arch/powerpc/include/uapi/asm/Kbuild
··· 1 1 # UAPI Header export list 2 2 include include/uapi/asm-generic/Kbuild.asm 3 3 4 + generated-y += unistd_32.h 5 + generated-y += unistd_64.h 4 6 generic-y += param.h 5 7 generic-y += poll.h 6 8 generic-y += resource.h
+2 -390
arch/powerpc/include/uapi/asm/unistd.h
··· 10 10 #ifndef _UAPI_ASM_POWERPC_UNISTD_H_ 11 11 #define _UAPI_ASM_POWERPC_UNISTD_H_ 12 12 13 - #define __NR_restart_syscall 0 14 - #define __NR_exit 1 15 - #define __NR_fork 2 16 - #define __NR_read 3 17 - #define __NR_write 4 18 - #define __NR_open 5 19 - #define __NR_close 6 20 - #define __NR_waitpid 7 21 - #define __NR_creat 8 22 - #define __NR_link 9 23 - #define __NR_unlink 10 24 - #define __NR_execve 11 25 - #define __NR_chdir 12 26 - #define __NR_time 13 27 - #define __NR_mknod 14 28 - #define __NR_chmod 15 29 - #define __NR_lchown 16 30 - #define __NR_break 17 31 - #define __NR_oldstat 18 32 - #define __NR_lseek 19 33 - #define __NR_getpid 20 34 - #define __NR_mount 21 35 - #define __NR_umount 22 36 - #define __NR_setuid 23 37 - #define __NR_getuid 24 38 - #define __NR_stime 25 39 - #define __NR_ptrace 26 40 - #define __NR_alarm 27 41 - #define __NR_oldfstat 28 42 - #define __NR_pause 29 43 - #define __NR_utime 30 44 - #define __NR_stty 31 45 - #define __NR_gtty 32 46 - #define __NR_access 33 47 - #define __NR_nice 34 48 - #define __NR_ftime 35 49 - #define __NR_sync 36 50 - #define __NR_kill 37 51 - #define __NR_rename 38 52 - #define __NR_mkdir 39 53 - #define __NR_rmdir 40 54 - #define __NR_dup 41 55 - #define __NR_pipe 42 56 - #define __NR_times 43 57 - #define __NR_prof 44 58 - #define __NR_brk 45 59 - #define __NR_setgid 46 60 - #define __NR_getgid 47 61 - #define __NR_signal 48 62 - #define __NR_geteuid 49 63 - #define __NR_getegid 50 64 - #define __NR_acct 51 65 - #define __NR_umount2 52 66 - #define __NR_lock 53 67 - #define __NR_ioctl 54 68 - #define __NR_fcntl 55 69 - #define __NR_mpx 56 70 - #define __NR_setpgid 57 71 - #define __NR_ulimit 58 72 - #define __NR_oldolduname 59 73 - #define __NR_umask 60 74 - #define __NR_chroot 61 75 - #define __NR_ustat 62 76 - #define __NR_dup2 63 77 - #define __NR_getppid 64 78 - #define __NR_getpgrp 65 79 - #define __NR_setsid 66 80 - #define __NR_sigaction 67 81 - #define __NR_sgetmask 68 82 - #define __NR_ssetmask 69 83 - #define __NR_setreuid 70 84 - #define __NR_setregid 71 85 - #define __NR_sigsuspend 72 86 - #define __NR_sigpending 73 87 - #define __NR_sethostname 74 88 - #define __NR_setrlimit 75 89 - #define __NR_getrlimit 76 90 - #define __NR_getrusage 77 91 - #define __NR_gettimeofday 78 92 - #define __NR_settimeofday 79 93 - #define __NR_getgroups 80 94 - #define __NR_setgroups 81 95 - #define __NR_select 82 96 - #define __NR_symlink 83 97 - #define __NR_oldlstat 84 98 - #define __NR_readlink 85 99 - #define __NR_uselib 86 100 - #define __NR_swapon 87 101 - #define __NR_reboot 88 102 - #define __NR_readdir 89 103 - #define __NR_mmap 90 104 - #define __NR_munmap 91 105 - #define __NR_truncate 92 106 - #define __NR_ftruncate 93 107 - #define __NR_fchmod 94 108 - #define __NR_fchown 95 109 - #define __NR_getpriority 96 110 - #define __NR_setpriority 97 111 - #define __NR_profil 98 112 - #define __NR_statfs 99 113 - #define __NR_fstatfs 100 114 - #define __NR_ioperm 101 115 - #define __NR_socketcall 102 116 - #define __NR_syslog 103 117 - #define __NR_setitimer 104 118 - #define __NR_getitimer 105 119 - #define __NR_stat 106 120 - #define __NR_lstat 107 121 - #define __NR_fstat 108 122 - #define __NR_olduname 109 123 - #define __NR_iopl 110 124 - #define __NR_vhangup 111 125 - #define __NR_idle 112 126 - #define __NR_vm86 113 127 - #define __NR_wait4 114 128 - #define __NR_swapoff 115 129 - #define __NR_sysinfo 116 130 - #define __NR_ipc 117 131 - #define __NR_fsync 118 132 - #define __NR_sigreturn 119 133 - #define __NR_clone 120 134 - #define __NR_setdomainname 121 135 - #define __NR_uname 122 136 - #define __NR_modify_ldt 123 137 - #define __NR_adjtimex 124 138 - #define __NR_mprotect 125 139 - #define __NR_sigprocmask 126 140 - #define __NR_create_module 127 141 - #define __NR_init_module 128 142 - #define __NR_delete_module 129 143 - #define __NR_get_kernel_syms 130 144 - #define __NR_quotactl 131 145 - #define __NR_getpgid 132 146 - #define __NR_fchdir 133 147 - #define __NR_bdflush 134 148 - #define __NR_sysfs 135 149 - #define __NR_personality 136 150 - #define __NR_afs_syscall 137 /* Syscall for Andrew File System */ 151 - #define __NR_setfsuid 138 152 - #define __NR_setfsgid 139 153 - #define __NR__llseek 140 154 - #define __NR_getdents 141 155 - #define __NR__newselect 142 156 - #define __NR_flock 143 157 - #define __NR_msync 144 158 - #define __NR_readv 145 159 - #define __NR_writev 146 160 - #define __NR_getsid 147 161 - #define __NR_fdatasync 148 162 - #define __NR__sysctl 149 163 - #define __NR_mlock 150 164 - #define __NR_munlock 151 165 - #define __NR_mlockall 152 166 - #define __NR_munlockall 153 167 - #define __NR_sched_setparam 154 168 - #define __NR_sched_getparam 155 169 - #define __NR_sched_setscheduler 156 170 - #define __NR_sched_getscheduler 157 171 - #define __NR_sched_yield 158 172 - #define __NR_sched_get_priority_max 159 173 - #define __NR_sched_get_priority_min 160 174 - #define __NR_sched_rr_get_interval 161 175 - #define __NR_nanosleep 162 176 - #define __NR_mremap 163 177 - #define __NR_setresuid 164 178 - #define __NR_getresuid 165 179 - #define __NR_query_module 166 180 - #define __NR_poll 167 181 - #define __NR_nfsservctl 168 182 - #define __NR_setresgid 169 183 - #define __NR_getresgid 170 184 - #define __NR_prctl 171 185 - #define __NR_rt_sigreturn 172 186 - #define __NR_rt_sigaction 173 187 - #define __NR_rt_sigprocmask 174 188 - #define __NR_rt_sigpending 175 189 - #define __NR_rt_sigtimedwait 176 190 - #define __NR_rt_sigqueueinfo 177 191 - #define __NR_rt_sigsuspend 178 192 - #define __NR_pread64 179 193 - #define __NR_pwrite64 180 194 - #define __NR_chown 181 195 - #define __NR_getcwd 182 196 - #define __NR_capget 183 197 - #define __NR_capset 184 198 - #define __NR_sigaltstack 185 199 - #define __NR_sendfile 186 200 - #define __NR_getpmsg 187 /* some people actually want streams */ 201 - #define __NR_putpmsg 188 /* some people actually want streams */ 202 - #define __NR_vfork 189 203 - #define __NR_ugetrlimit 190 /* SuS compliant getrlimit */ 204 - #define __NR_readahead 191 205 - #ifndef __powerpc64__ /* these are 32-bit only */ 206 - #define __NR_mmap2 192 207 - #define __NR_truncate64 193 208 - #define __NR_ftruncate64 194 209 - #define __NR_stat64 195 210 - #define __NR_lstat64 196 211 - #define __NR_fstat64 197 212 - #endif 213 - #define __NR_pciconfig_read 198 214 - #define __NR_pciconfig_write 199 215 - #define __NR_pciconfig_iobase 200 216 - #define __NR_multiplexer 201 217 - #define __NR_getdents64 202 218 - #define __NR_pivot_root 203 219 13 #ifndef __powerpc64__ 220 - #define __NR_fcntl64 204 221 - #endif 222 - #define __NR_madvise 205 223 - #define __NR_mincore 206 224 - #define __NR_gettid 207 225 - #define __NR_tkill 208 226 - #define __NR_setxattr 209 227 - #define __NR_lsetxattr 210 228 - #define __NR_fsetxattr 211 229 - #define __NR_getxattr 212 230 - #define __NR_lgetxattr 213 231 - #define __NR_fgetxattr 214 232 - #define __NR_listxattr 215 233 - #define __NR_llistxattr 216 234 - #define __NR_flistxattr 217 235 - #define __NR_removexattr 218 236 - #define __NR_lremovexattr 219 237 - #define __NR_fremovexattr 220 238 - #define __NR_futex 221 239 - #define __NR_sched_setaffinity 222 240 - #define __NR_sched_getaffinity 223 241 - /* 224 currently unused */ 242 - #define __NR_tuxcall 225 243 - #ifndef __powerpc64__ 244 - #define __NR_sendfile64 226 245 - #endif 246 - #define __NR_io_setup 227 247 - #define __NR_io_destroy 228 248 - #define __NR_io_getevents 229 249 - #define __NR_io_submit 230 250 - #define __NR_io_cancel 231 251 - #define __NR_set_tid_address 232 252 - #define __NR_fadvise64 233 253 - #define __NR_exit_group 234 254 - #define __NR_lookup_dcookie 235 255 - #define __NR_epoll_create 236 256 - #define __NR_epoll_ctl 237 257 - #define __NR_epoll_wait 238 258 - #define __NR_remap_file_pages 239 259 - #define __NR_timer_create 240 260 - #define __NR_timer_settime 241 261 - #define __NR_timer_gettime 242 262 - #define __NR_timer_getoverrun 243 263 - #define __NR_timer_delete 244 264 - #define __NR_clock_settime 245 265 - #define __NR_clock_gettime 246 266 - #define __NR_clock_getres 247 267 - #define __NR_clock_nanosleep 248 268 - #define __NR_swapcontext 249 269 - #define __NR_tgkill 250 270 - #define __NR_utimes 251 271 - #define __NR_statfs64 252 272 - #define __NR_fstatfs64 253 273 - #ifndef __powerpc64__ 274 - #define __NR_fadvise64_64 254 275 - #endif 276 - #define __NR_rtas 255 277 - #define __NR_sys_debug_setcontext 256 278 - /* Number 257 is reserved for vserver */ 279 - #define __NR_migrate_pages 258 280 - #define __NR_mbind 259 281 - #define __NR_get_mempolicy 260 282 - #define __NR_set_mempolicy 261 283 - #define __NR_mq_open 262 284 - #define __NR_mq_unlink 263 285 - #define __NR_mq_timedsend 264 286 - #define __NR_mq_timedreceive 265 287 - #define __NR_mq_notify 266 288 - #define __NR_mq_getsetattr 267 289 - #define __NR_kexec_load 268 290 - #define __NR_add_key 269 291 - #define __NR_request_key 270 292 - #define __NR_keyctl 271 293 - #define __NR_waitid 272 294 - #define __NR_ioprio_set 273 295 - #define __NR_ioprio_get 274 296 - #define __NR_inotify_init 275 297 - #define __NR_inotify_add_watch 276 298 - #define __NR_inotify_rm_watch 277 299 - #define __NR_spu_run 278 300 - #define __NR_spu_create 279 301 - #define __NR_pselect6 280 302 - #define __NR_ppoll 281 303 - #define __NR_unshare 282 304 - #define __NR_splice 283 305 - #define __NR_tee 284 306 - #define __NR_vmsplice 285 307 - #define __NR_openat 286 308 - #define __NR_mkdirat 287 309 - #define __NR_mknodat 288 310 - #define __NR_fchownat 289 311 - #define __NR_futimesat 290 312 - #ifdef __powerpc64__ 313 - #define __NR_newfstatat 291 14 + #include <asm/unistd_32.h> 314 15 #else 315 - #define __NR_fstatat64 291 316 - #endif 317 - #define __NR_unlinkat 292 318 - #define __NR_renameat 293 319 - #define __NR_linkat 294 320 - #define __NR_symlinkat 295 321 - #define __NR_readlinkat 296 322 - #define __NR_fchmodat 297 323 - #define __NR_faccessat 298 324 - #define __NR_get_robust_list 299 325 - #define __NR_set_robust_list 300 326 - #define __NR_move_pages 301 327 - #define __NR_getcpu 302 328 - #define __NR_epoll_pwait 303 329 - #define __NR_utimensat 304 330 - #define __NR_signalfd 305 331 - #define __NR_timerfd_create 306 332 - #define __NR_eventfd 307 333 - #define __NR_sync_file_range2 308 334 - #define __NR_fallocate 309 335 - #define __NR_subpage_prot 310 336 - #define __NR_timerfd_settime 311 337 - #define __NR_timerfd_gettime 312 338 - #define __NR_signalfd4 313 339 - #define __NR_eventfd2 314 340 - #define __NR_epoll_create1 315 341 - #define __NR_dup3 316 342 - #define __NR_pipe2 317 343 - #define __NR_inotify_init1 318 344 - #define __NR_perf_event_open 319 345 - #define __NR_preadv 320 346 - #define __NR_pwritev 321 347 - #define __NR_rt_tgsigqueueinfo 322 348 - #define __NR_fanotify_init 323 349 - #define __NR_fanotify_mark 324 350 - #define __NR_prlimit64 325 351 - #define __NR_socket 326 352 - #define __NR_bind 327 353 - #define __NR_connect 328 354 - #define __NR_listen 329 355 - #define __NR_accept 330 356 - #define __NR_getsockname 331 357 - #define __NR_getpeername 332 358 - #define __NR_socketpair 333 359 - #define __NR_send 334 360 - #define __NR_sendto 335 361 - #define __NR_recv 336 362 - #define __NR_recvfrom 337 363 - #define __NR_shutdown 338 364 - #define __NR_setsockopt 339 365 - #define __NR_getsockopt 340 366 - #define __NR_sendmsg 341 367 - #define __NR_recvmsg 342 368 - #define __NR_recvmmsg 343 369 - #define __NR_accept4 344 370 - #define __NR_name_to_handle_at 345 371 - #define __NR_open_by_handle_at 346 372 - #define __NR_clock_adjtime 347 373 - #define __NR_syncfs 348 374 - #define __NR_sendmmsg 349 375 - #define __NR_setns 350 376 - #define __NR_process_vm_readv 351 377 - #define __NR_process_vm_writev 352 378 - #define __NR_finit_module 353 379 - #define __NR_kcmp 354 380 - #define __NR_sched_setattr 355 381 - #define __NR_sched_getattr 356 382 - #define __NR_renameat2 357 383 - #define __NR_seccomp 358 384 - #define __NR_getrandom 359 385 - #define __NR_memfd_create 360 386 - #define __NR_bpf 361 387 - #define __NR_execveat 362 388 - #define __NR_switch_endian 363 389 - #define __NR_userfaultfd 364 390 - #define __NR_membarrier 365 391 - #define __NR_mlock2 378 392 - #define __NR_copy_file_range 379 393 - #define __NR_preadv2 380 394 - #define __NR_pwritev2 381 395 - #define __NR_kexec_file_load 382 396 - #define __NR_statx 383 397 - #define __NR_pkey_alloc 384 398 - #define __NR_pkey_free 385 399 - #define __NR_pkey_mprotect 386 400 - #define __NR_rseq 387 401 - #define __NR_io_pgetevents 388 402 - 403 - #ifdef __KERNEL__ 404 - #define __NR_syscalls 389 16 + #include <asm/unistd_64.h> 405 17 #endif 406 18 407 19 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
-10
arch/powerpc/kernel/Makefile
··· 160 160 extra-$(CONFIG_PPC64) += entry_64.o 161 161 extra-$(CONFIG_PPC_OF_BOOT_TRAMPOLINE) += prom_init.o 162 162 163 - extra-y += systbl_chk.i 164 - $(obj)/systbl.o: systbl_chk 165 - 166 - quiet_cmd_systbl_chk = CALL $< 167 - cmd_systbl_chk = $(CONFIG_SHELL) $< $(obj)/systbl_chk.i 168 - 169 - PHONY += systbl_chk 170 - systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i 171 - $(call cmd,systbl_chk) 172 - 173 163 ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE 174 164 $(obj)/built-in.a: prom_init_check 175 165
+12 -40
arch/powerpc/kernel/systbl.S
··· 16 16 17 17 #include <asm/ppc_asm.h> 18 18 19 - #ifdef CONFIG_PPC64 20 - #define SYSCALL(func) .8byte DOTSYM(sys_##func) 21 - #define COMPAT_SYS(func) .8byte DOTSYM(sys_##func) 22 - #define PPC_SYS(func) .8byte DOTSYM(ppc_##func) 23 - #define OLDSYS(func) .8byte DOTSYM(sys_ni_syscall) 24 - #define SYS32ONLY(func) .8byte DOTSYM(sys_ni_syscall) 25 - #define PPC64ONLY(func) .8byte DOTSYM(ppc_##func) 26 - #define SYSX(f, f3264, f32) .8byte DOTSYM(f) 27 - #else 28 - #define SYSCALL(func) .long sys_##func 29 - #define COMPAT_SYS(func) .long sys_##func 30 - #define PPC_SYS(func) .long ppc_##func 31 - #define OLDSYS(func) .long sys_##func 32 - #define SYS32ONLY(func) .long sys_##func 33 - #define PPC64ONLY(func) .long sys_ni_syscall 34 - #define SYSX(f, f3264, f32) .long f32 35 - #endif 36 - #define SYSCALL_SPU(func) SYSCALL(func) 37 - #define COMPAT_SYS_SPU(func) COMPAT_SYS(func) 38 - #define COMPAT_SPU_NEW(func) COMPAT_SYS(func) 39 - #define SYSX_SPU(f, f3264, f32) SYSX(f, f3264, f32) 40 - 41 19 .section .rodata,"a" 42 20 43 21 #ifdef CONFIG_PPC64 ··· 24 46 25 47 .globl sys_call_table 26 48 sys_call_table: 27 - #include <asm/systbl.h> 28 - 29 - #undef SYSCALL 30 - #undef COMPAT_SYS 31 - #undef PPC_SYS 32 - #undef OLDSYS 33 - #undef SYS32ONLY 34 - #undef PPC64ONLY 35 - #undef SYSX 49 + #ifdef CONFIG_PPC64 50 + #define __SYSCALL(nr, entry, nargs) .8byte DOTSYM(entry) 51 + #include <asm/syscall_table_64.h> 52 + #undef __SYSCALL 53 + #else 54 + #define __SYSCALL(nr, entry, nargs) .long entry 55 + #include <asm/syscall_table_32.h> 56 + #undef __SYSCALL 57 + #endif 36 58 37 59 #ifdef CONFIG_COMPAT 38 - #define SYSCALL(func) .8byte DOTSYM(sys_##func) 39 - #define COMPAT_SYS(func) .8byte DOTSYM(compat_sys_##func) 40 - #define PPC_SYS(func) .8byte DOTSYM(ppc_##func) 41 - #define OLDSYS(func) .8byte DOTSYM(sys_ni_syscall) 42 - #define SYS32ONLY(func) .8byte DOTSYM(compat_sys_##func) 43 - #define PPC64ONLY(func) .8byte DOTSYM(sys_ni_syscall) 44 - #define SYSX(f, f3264, f32) .8byte DOTSYM(f3264) 45 - 46 60 .globl compat_sys_call_table 47 61 compat_sys_call_table: 48 62 #define compat_sys_sigsuspend sys_sigsuspend 49 - #include <asm/systbl.h> 63 + #define __SYSCALL(nr, entry, nargs) .8byte DOTSYM(entry) 64 + #include <asm/syscall_table_c32.h> 65 + #undef __SYSCALL 50 66 #endif
-60
arch/powerpc/kernel/systbl_chk.c
··· 1 - /* 2 - * This file, when run through CPP produces a list of syscall numbers 3 - * in the order of systbl.h. That way we can check for gaps and syscalls 4 - * that are out of order. 5 - * 6 - * Unfortunately, we cannot check for the correct ordering of entries 7 - * using SYSX(). 8 - * 9 - * Copyright © IBM Corporation 10 - * 11 - * This program is free software; you can redistribute it and/or 12 - * modify it under the terms of the GNU General Public License 13 - * as published by the Free Software Foundation; either version 14 - * 2 of the License, or (at your option) any later version. 15 - */ 16 - #include <asm/unistd.h> 17 - 18 - #define SYSCALL(func) __NR_##func 19 - #define COMPAT_SYS(func) __NR_##func 20 - #define PPC_SYS(func) __NR_##func 21 - #ifdef CONFIG_PPC64 22 - #define OLDSYS(func) -1 23 - #define SYS32ONLY(func) -1 24 - #define PPC64ONLY(func) __NR_##func 25 - #else 26 - #define OLDSYS(func) __NR_old##func 27 - #define SYS32ONLY(func) __NR_##func 28 - #define PPC64ONLY(func) -1 29 - #endif 30 - #define SYSX(f, f3264, f32) -1 31 - 32 - #define SYSCALL_SPU(func) SYSCALL(func) 33 - #define COMPAT_SYS_SPU(func) COMPAT_SYS(func) 34 - #define COMPAT_SPU_NEW(func) COMPAT_SYS(_new##func) 35 - #define SYSX_SPU(f, f3264, f32) SYSX(f, f3264, f32) 36 - 37 - /* Just insert a marker for ni_syscalls */ 38 - #define __NR_ni_syscall -1 39 - 40 - /* 41 - * These are the known exceptions. 42 - * Hopefully, there will be no more. 43 - */ 44 - #define __NR_llseek __NR__llseek 45 - #undef __NR_umount 46 - #define __NR_umount __NR_umount2 47 - #define __NR_old_getrlimit __NR_getrlimit 48 - #define __NR_newstat __NR_stat 49 - #define __NR_newlstat __NR_lstat 50 - #define __NR_newfstat __NR_fstat 51 - #define __NR_newuname __NR_uname 52 - #define __NR_sysctl __NR__sysctl 53 - #define __NR_olddebug_setcontext __NR_sys_debug_setcontext 54 - 55 - /* We call sys_ugetrlimit for syscall number __NR_getrlimit */ 56 - #define getrlimit ugetrlimit 57 - 58 - START_TABLE 59 - #include <asm/systbl.h> 60 - END_TABLE NR_syscalls
+3 -14
arch/powerpc/platforms/cell/spu_callbacks.c
··· 34 34 */ 35 35 36 36 static void *spu_syscall_table[] = { 37 - #define SYSCALL(func) sys_ni_syscall, 38 - #define COMPAT_SYS(func) sys_ni_syscall, 39 - #define PPC_SYS(func) sys_ni_syscall, 40 - #define OLDSYS(func) sys_ni_syscall, 41 - #define SYS32ONLY(func) sys_ni_syscall, 42 - #define PPC64ONLY(func) sys_ni_syscall, 43 - #define SYSX(f, f3264, f32) sys_ni_syscall, 44 - 45 - #define SYSCALL_SPU(func) sys_##func, 46 - #define COMPAT_SYS_SPU(func) sys_##func, 47 - #define COMPAT_SPU_NEW(func) sys_##func, 48 - #define SYSX_SPU(f, f3264, f32) f, 49 - 50 - #include <asm/systbl.h> 37 + #define __SYSCALL(nr, entry, nargs) entry, 38 + #include <asm/syscall_table_spu.h> 39 + #undef __SYSCALL 51 40 }; 52 41 53 42 long spu_sys_callback(struct spu_syscall_block *s)