Commit c9490255 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

h8300: Fill the system call table using a CALL() macro

The CALL() macro abstracts (a.o.) the underscore symbol prefix.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 1e2b3bda
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#include <asm/linkage.h> #include <asm/linkage.h>
#include <asm/unistd.h> #include <asm/unistd.h>
#define CALL(x) .long _ ## x
.globl _sys_call_table .globl _sys_call_table
#if defined(CONFIG_CPU_H8300H) #if defined(CONFIG_CPU_H8300H)
...@@ -14,323 +16,323 @@ ...@@ -14,323 +16,323 @@
.section .text .section .text
.align 2 .align 2
_sys_call_table: _sys_call_table:
.long _sys_ni_syscall /* 0 - old "setup()" system call*/ CALL(sys_ni_syscall) /* 0 - old "setup()" system call*/
.long _sys_exit CALL(sys_exit)
.long _sys_fork CALL(sys_fork)
.long _sys_read CALL(sys_read)
.long _sys_write CALL(sys_write)
.long _sys_open /* 5 */ CALL(sys_open) /* 5 */
.long _sys_close CALL(sys_close)
.long _sys_waitpid CALL(sys_waitpid)
.long _sys_creat CALL(sys_creat)
.long _sys_link CALL(sys_link)
.long _sys_unlink /* 10 */ CALL(sys_unlink) /* 10 */
.long _sys_execve CALL(sys_execve)
.long _sys_chdir CALL(sys_chdir)
.long _sys_time CALL(sys_time)
.long _sys_mknod CALL(sys_mknod)
.long _sys_chmod /* 15 */ CALL(sys_chmod) /* 15 */
.long _sys_chown16 CALL(sys_chown16)
.long _sys_ni_syscall /* old break syscall holder */ CALL(sys_ni_syscall) /* old break syscall holder */
.long _sys_stat CALL(sys_stat)
.long _sys_lseek CALL(sys_lseek)
.long _sys_getpid /* 20 */ CALL(sys_getpid) /* 20 */
.long _sys_mount CALL(sys_mount)
.long _sys_oldumount CALL(sys_oldumount)
.long _sys_setuid16 CALL(sys_setuid16)
.long _sys_getuid16 CALL(sys_getuid16)
.long _sys_stime /* 25 */ CALL(sys_stime) /* 25 */
.long _sys_ptrace CALL(sys_ptrace)
.long _sys_alarm CALL(sys_alarm)
.long _sys_fstat CALL(sys_fstat)
.long _sys_pause CALL(sys_pause)
.long _sys_utime /* 30 */ CALL(sys_utime) /* 30 */
.long _sys_ni_syscall /* old stty syscall holder */ CALL(sys_ni_syscall) /* old stty syscall holder */
.long _sys_ni_syscall /* old gtty syscall holder */ CALL(sys_ni_syscall) /* old gtty syscall holder */
.long _sys_access CALL(sys_access)
.long _sys_nice CALL(sys_nice)
.long _sys_ni_syscall /* 35 old ftime syscall holder */ CALL(sys_ni_syscall) /* 35 old ftime syscall holder */
.long _sys_sync CALL(sys_sync)
.long _sys_kill CALL(sys_kill)
.long _sys_rename CALL(sys_rename)
.long _sys_mkdir CALL(sys_mkdir)
.long _sys_rmdir /* 40 */ CALL(sys_rmdir) /* 40 */
.long _sys_dup CALL(sys_dup)
.long _sys_pipe CALL(sys_pipe)
.long _sys_times CALL(sys_times)
.long _sys_ni_syscall /* old prof syscall holder */ CALL(sys_ni_syscall) /* old prof syscall holder */
.long _sys_brk /* 45 */ CALL(sys_brk) /* 45 */
.long _sys_setgid16 CALL(sys_setgid16)
.long _sys_getgid16 CALL(sys_getgid16)
.long _sys_signal CALL(sys_signal)
.long _sys_geteuid16 CALL(sys_geteuid16)
.long _sys_getegid16 /* 50 */ CALL(sys_getegid16) /* 50 */
.long _sys_acct CALL(sys_acct)
.long _sys_umount /* recycled never used phys() */ CALL(sys_umount) /* recycled never used phys() */
.long _sys_ni_syscall /* old lock syscall holder */ CALL(sys_ni_syscall) /* old lock syscall holder */
.long _sys_ioctl CALL(sys_ioctl)
.long _sys_fcntl /* 55 */ CALL(sys_fcntl) /* 55 */
.long _sys_ni_syscall /* old mpx syscall holder */ CALL(sys_ni_syscall) /* old mpx syscall holder */
.long _sys_setpgid CALL(sys_setpgid)
.long _sys_ni_syscall /* old ulimit syscall holder */ CALL(sys_ni_syscall) /* old ulimit syscall holder */
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_umask /* 60 */ CALL(sys_umask) /* 60 */
.long _sys_chroot CALL(sys_chroot)
.long _sys_ustat CALL(sys_ustat)
.long _sys_dup2 CALL(sys_dup2)
.long _sys_getppid CALL(sys_getppid)
.long _sys_getpgrp /* 65 */ CALL(sys_getpgrp) /* 65 */
.long _sys_setsid CALL(sys_setsid)
.long _sys_sigaction CALL(sys_sigaction)
.long _sys_sgetmask CALL(sys_sgetmask)
.long _sys_ssetmask CALL(sys_ssetmask)
.long _sys_setreuid16 /* 70 */ CALL(sys_setreuid16) /* 70 */
.long _sys_setregid16 CALL(sys_setregid16)
.long _sys_sigsuspend CALL(sys_sigsuspend)
.long _sys_sigpending CALL(sys_sigpending)
.long _sys_sethostname CALL(sys_sethostname)
.long _sys_setrlimit /* 75 */ CALL(sys_setrlimit) /* 75 */
.long _sys_old_getrlimit CALL(sys_old_getrlimit)
.long _sys_getrusage CALL(sys_getrusage)
.long _sys_gettimeofday CALL(sys_gettimeofday)
.long _sys_settimeofday CALL(sys_settimeofday)
.long _sys_getgroups16 /* 80 */ CALL(sys_getgroups16) /* 80 */
.long _sys_setgroups16 CALL(sys_setgroups16)
.long _sys_old_select CALL(sys_old_select)
.long _sys_symlink CALL(sys_symlink)
.long _sys_lstat CALL(sys_lstat)
.long _sys_readlink /* 85 */ CALL(sys_readlink) /* 85 */
.long _sys_uselib CALL(sys_uselib)
.long _sys_swapon CALL(sys_swapon)
.long _sys_reboot CALL(sys_reboot)
.long _sys_old_readdir CALL(sys_old_readdir)
.long _sys_old_mmap /* 90 */ CALL(sys_old_mmap) /* 90 */
.long _sys_munmap CALL(sys_munmap)
.long _sys_truncate CALL(sys_truncate)
.long _sys_ftruncate CALL(sys_ftruncate)
.long _sys_fchmod CALL(sys_fchmod)
.long _sys_fchown16 /* 95 */ CALL(sys_fchown16) /* 95 */
.long _sys_getpriority CALL(sys_getpriority)
.long _sys_setpriority CALL(sys_setpriority)
.long _sys_ni_syscall /* old profil syscall holder */ CALL(sys_ni_syscall) /* old profil syscall holder */
.long _sys_statfs CALL(sys_statfs)
.long _sys_fstatfs /* 100 */ CALL(sys_fstatfs) /* 100 */
.long _sys_ni_syscall /* ioperm for i386 */ CALL(sys_ni_syscall) /* ioperm for i386 */
.long _sys_socketcall CALL(sys_socketcall)
.long _sys_syslog CALL(sys_syslog)
.long _sys_setitimer CALL(sys_setitimer)
.long _sys_getitimer /* 105 */ CALL(sys_getitimer) /* 105 */
.long _sys_newstat CALL(sys_newstat)
.long _sys_newlstat CALL(sys_newlstat)
.long _sys_newfstat CALL(sys_newfstat)
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_ni_syscall /* iopl for i386 */ /* 110 */ CALL(sys_ni_syscall) /* iopl for i386 */ /* 110 */
.long _sys_vhangup CALL(sys_vhangup)
.long _sys_ni_syscall /* obsolete idle() syscall */ CALL(sys_ni_syscall) /* obsolete idle() syscall */
.long _sys_ni_syscall /* vm86old for i386 */ CALL(sys_ni_syscall) /* vm86old for i386 */
.long _sys_wait4 CALL(sys_wait4)
.long _sys_swapoff /* 115 */ CALL(sys_swapoff) /* 115 */
.long _sys_sysinfo CALL(sys_sysinfo)
.long _sys_ipc CALL(sys_ipc)
.long _sys_fsync CALL(sys_fsync)
.long _sys_sigreturn CALL(sys_sigreturn)
.long _sys_clone /* 120 */ CALL(sys_clone) /* 120 */
.long _sys_setdomainname CALL(sys_setdomainname)
.long _sys_newuname CALL(sys_newuname)
.long _sys_cacheflush /* modify_ldt for i386 */ CALL(sys_cacheflush) /* modify_ldt for i386 */
.long _sys_adjtimex CALL(sys_adjtimex)
.long _sys_ni_syscall /* 125 sys_mprotect */ CALL(sys_ni_syscall) /* 125 sys_mprotect */
.long _sys_sigprocmask CALL(sys_sigprocmask)
.long _sys_ni_syscall /* sys_create_module */ CALL(sys_ni_syscall) /* sys_create_module */
.long _sys_init_module CALL(sys_init_module)
.long _sys_delete_module CALL(sys_delete_module)
.long _sys_ni_syscall /* 130 sys_get_kernel_syms */ CALL(sys_ni_syscall) /* 130 sys_get_kernel_syms */
.long _sys_quotactl CALL(sys_quotactl)
.long _sys_getpgid CALL(sys_getpgid)
.long _sys_fchdir CALL(sys_fchdir)
.long _sys_bdflush CALL(sys_bdflush)
.long _sys_sysfs /* 135 */ CALL(sys_sysfs) /* 135 */
.long _sys_personality CALL(sys_personality)
.long _sys_ni_syscall /* for afs_syscall */ CALL(sys_ni_syscall) /* for afs_syscall */
.long _sys_setfsuid16 CALL(sys_setfsuid16)
.long _sys_setfsgid16 CALL(sys_setfsgid16)
.long _sys_llseek /* 140 */ CALL(sys_llseek) /* 140 */
.long _sys_getdents CALL(sys_getdents)
.long _sys_select CALL(sys_select)
.long _sys_flock CALL(sys_flock)
.long _sys_ni_syscall /* sys_msync */ CALL(sys_ni_syscall) /* sys_msync */
.long _sys_readv /* 145 */ CALL(sys_readv) /* 145 */
.long _sys_writev CALL(sys_writev)
.long _sys_getsid CALL(sys_getsid)
.long _sys_fdatasync CALL(sys_fdatasync)
.long _sys_sysctl CALL(sys_sysctl)
.long _sys_ni_syscall /* 150 sys_mlock */ CALL(sys_ni_syscall) /* 150 sys_mlock */
.long _sys_ni_syscall /* sys_munlock */ CALL(sys_ni_syscall) /* sys_munlock */
.long _sys_ni_syscall /* sys_mlockall */ CALL(sys_ni_syscall) /* sys_mlockall */
.long _sys_ni_syscall /* sys_munlockall */ CALL(sys_ni_syscall) /* sys_munlockall */
.long _sys_sched_setparam CALL(sys_sched_setparam)
.long _sys_sched_getparam /* 155 */ CALL(sys_sched_getparam) /* 155 */
.long _sys_sched_setscheduler CALL(sys_sched_setscheduler)
.long _sys_sched_getscheduler CALL(sys_sched_getscheduler)
.long _sys_sched_yield CALL(sys_sched_yield)
.long _sys_sched_get_priority_max CALL(sys_sched_get_priority_max)
.long _sys_sched_get_priority_min /* 160 */ CALL(sys_sched_get_priority_min) /* 160 */
.long _sys_sched_rr_get_interval CALL(sys_sched_rr_get_interval)
.long _sys_nanosleep CALL(sys_nanosleep)
.long _sys_ni_syscall /* sys_mremap */ CALL(sys_ni_syscall) /* sys_mremap */
.long _sys_setresuid16 CALL(sys_setresuid16)
.long _sys_getresuid16 /* 165 */ CALL(sys_getresuid16) /* 165 */
.long _sys_ni_syscall /* for vm86 */ CALL(sys_ni_syscall) /* for vm86 */
.long _sys_ni_syscall /* sys_query_module */ CALL(sys_ni_syscall) /* sys_query_module */
.long _sys_poll CALL(sys_poll)
.long _sys_ni_syscall /* old nfsservctl */ CALL(sys_ni_syscall) /* old nfsservctl */
.long _sys_setresgid16 /* 170 */ CALL(sys_setresgid16) /* 170 */
.long _sys_getresgid16 CALL(sys_getresgid16)
.long _sys_prctl CALL(sys_prctl)
.long _sys_rt_sigreturn CALL(sys_rt_sigreturn)
.long _sys_rt_sigaction CALL(sys_rt_sigaction)
.long _sys_rt_sigprocmask /* 175 */ CALL(sys_rt_sigprocmask) /* 175 */
.long _sys_rt_sigpending CALL(sys_rt_sigpending)
.long _sys_rt_sigtimedwait CALL(sys_rt_sigtimedwait)
.long _sys_rt_sigqueueinfo CALL(sys_rt_sigqueueinfo)
.long _sys_rt_sigsuspend CALL(sys_rt_sigsuspend)
.long _sys_pread64 /* 180 */ CALL(sys_pread64) /* 180 */
.long _sys_pwrite64 CALL(sys_pwrite64)
.long _sys_lchown16; CALL(sys_lchown16);
.long _sys_getcwd CALL(sys_getcwd)
.long _sys_capget CALL(sys_capget)
.long _sys_capset /* 185 */ CALL(sys_capset) /* 185 */
.long _sys_sigaltstack CALL(sys_sigaltstack)
.long _sys_sendfile CALL(sys_sendfile)
.long _sys_ni_syscall /* streams1 */ CALL(sys_ni_syscall) /* streams1 */
.long _sys_ni_syscall /* streams2 */ CALL(sys_ni_syscall) /* streams2 */
.long _sys_vfork /* 190 */ CALL(sys_vfork) /* 190 */
.long _sys_getrlimit CALL(sys_getrlimit)
.long _sys_mmap_pgoff CALL(sys_mmap_pgoff)
.long _sys_truncate64 CALL(sys_truncate64)
.long _sys_ftruncate64 CALL(sys_ftruncate64)
.long _sys_stat64 /* 195 */ CALL(sys_stat64) /* 195 */
.long _sys_lstat64 CALL(sys_lstat64)
.long _sys_fstat64 CALL(sys_fstat64)
.long _sys_chown CALL(sys_chown)
.long _sys_getuid CALL(sys_getuid)
.long _sys_getgid /* 200 */ CALL(sys_getgid) /* 200 */
.long _sys_geteuid CALL(sys_geteuid)
.long _sys_getegid CALL(sys_getegid)
.long _sys_setreuid CALL(sys_setreuid)
.long _sys_setregid CALL(sys_setregid)
.long _sys_getgroups /* 205 */ CALL(sys_getgroups) /* 205 */
.long _sys_setgroups CALL(sys_setgroups)
.long _sys_fchown CALL(sys_fchown)
.long _sys_setresuid CALL(sys_setresuid)
.long _sys_getresuid CALL(sys_getresuid)
.long _sys_setresgid /* 210 */ CALL(sys_setresgid) /* 210 */
.long _sys_getresgid CALL(sys_getresgid)
.long _sys_lchown CALL(sys_lchown)
.long _sys_setuid CALL(sys_setuid)
.long _sys_setgid CALL(sys_setgid)
.long _sys_setfsuid /* 215 */ CALL(sys_setfsuid) /* 215 */
.long _sys_setfsgid CALL(sys_setfsgid)
.long _sys_pivot_root CALL(sys_pivot_root)
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_getdents64 /* 220 */ CALL(sys_getdents64) /* 220 */
.long _sys_fcntl64 CALL(sys_fcntl64)
.long _sys_ni_syscall /* reserved TUX */ CALL(sys_ni_syscall) /* reserved TUX */
.long _sys_ni_syscall /* reserved Security */ CALL(sys_ni_syscall) /* reserved Security */
.long _sys_gettid CALL(sys_gettid)
.long _sys_readahead /* 225 */ CALL(sys_readahead) /* 225 */
.long _sys_setxattr CALL(sys_setxattr)
.long _sys_lsetxattr CALL(sys_lsetxattr)
.long _sys_fsetxattr CALL(sys_fsetxattr)
.long _sys_getxattr CALL(sys_getxattr)
.long _sys_lgetxattr /* 230 */ CALL(sys_lgetxattr) /* 230 */
.long _sys_fgetxattr CALL(sys_fgetxattr)
.long _sys_listxattr CALL(sys_listxattr)
.long _sys_llistxattr CALL(sys_llistxattr)
.long _sys_flistxattr CALL(sys_flistxattr)
.long _sys_removexattr /* 235 */ CALL(sys_removexattr) /* 235 */
.long _sys_lremovexattr CALL(sys_lremovexattr)
.long _sys_fremovexattr CALL(sys_fremovexattr)
.long _sys_tkill CALL(sys_tkill)
.long _sys_sendfile64 CALL(sys_sendfile64)
.long _sys_futex /* 240 */ CALL(sys_futex) /* 240 */
.long _sys_sched_setaffinity CALL(sys_sched_setaffinity)
.long _sys_sched_getaffinity CALL(sys_sched_getaffinity)
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_io_setup /* 245 */ CALL(sys_io_setup) /* 245 */
.long _sys_io_destroy CALL(sys_io_destroy)
.long _sys_io_getevents CALL(sys_io_getevents)
.long _sys_io_submit CALL(sys_io_submit)
.long _sys_io_cancel CALL(sys_io_cancel)
.long _sys_fadvise64 /* 250 */ CALL(sys_fadvise64) /* 250 */
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_exit_group CALL(sys_exit_group)
.long _sys_lookup_dcookie CALL(sys_lookup_dcookie)
.long _sys_epoll_create CALL(sys_epoll_create)
.long _sys_epoll_ctl /* 255 */ CALL(sys_epoll_ctl) /* 255 */
.long _sys_epoll_wait CALL(sys_epoll_wait)
.long _sys_ni_syscall /* sys_remap_file_pages */ CALL(sys_ni_syscall) /* sys_remap_file_pages */
.long _sys_set_tid_address CALL(sys_set_tid_address)
.long _sys_timer_create CALL(sys_timer_create)
.long _sys_timer_settime /* 260 */ CALL(sys_timer_settime) /* 260 */
.long _sys_timer_gettime CALL(sys_timer_gettime)
.long _sys_timer_getoverrun CALL(sys_timer_getoverrun)
.long _sys_timer_delete CALL(sys_timer_delete)
.long _sys_clock_settime CALL(sys_clock_settime)
.long _sys_clock_gettime /* 265 */ CALL(sys_clock_gettime) /* 265 */
.long _sys_clock_getres CALL(sys_clock_getres)
.long _sys_clock_nanosleep CALL(sys_clock_nanosleep)
.long _sys_statfs64 CALL(sys_statfs64)
.long _sys_fstatfs64 CALL(sys_fstatfs64)
.long _sys_tgkill /* 270 */ CALL(sys_tgkill) /* 270 */
.long _sys_utimes CALL(sys_utimes)
.long _sys_fadvise64_64 CALL(sys_fadvise64_64)
.long _sys_ni_syscall /* sys_vserver */ CALL(sys_ni_syscall) /* sys_vserver */
.long _sys_ni_syscall CALL(sys_ni_syscall)
.long _sys_get_mempolicy /* 275 */ CALL(sys_get_mempolicy) /* 275 */
.long _sys_set_mempolicy CALL(sys_set_mempolicy)
.long _sys_mq_open CALL(sys_mq_open)
.long _sys_mq_unlink CALL(sys_mq_unlink)
.long _sys_mq_timedsend CALL(sys_mq_timedsend)
.long _sys_mq_timedreceive /* 280 */ CALL(sys_mq_timedreceive) /* 280 */
.long _sys_mq_notify CALL(sys_mq_notify)
.long _sys_mq_getsetattr CALL(sys_mq_getsetattr)
.long _sys_waitid CALL(sys_waitid)
.long _sys_ni_syscall /* sys_kexec_load */ CALL(sys_ni_syscall) /* sys_kexec_load */
.long _sys_add_key /* 285 */ CALL(sys_add_key) /* 285 */
.long _sys_request_key CALL(sys_request_key)
.long _sys_keyctl CALL(sys_keyctl)
.long _sys_ioprio_set CALL(sys_ioprio_set)
.long _sys_ioprio_get /* 290 */ CALL(sys_ioprio_get) /* 290 */
.long _sys_inotify_init CALL(sys_inotify_init)
.long _sys_inotify_add_watch CALL(sys_inotify_add_watch)
.long _sys_inotify_rm_watch CALL(sys_inotify_rm_watch)
.long _sys_migrate_pages CALL(sys_migrate_pages)
.long _sys_openat /* 295 */ CALL(sys_openat) /* 295 */
.long _sys_mkdirat CALL(sys_mkdirat)
.long _sys_mknodat CALL(sys_mknodat)
.long _sys_fchownat CALL(sys_fchownat)
.long _sys_futimesat CALL(sys_futimesat)
.long _sys_fstatat64 /* 300 */ CALL(sys_fstatat64) /* 300 */
.long _sys_unlinkat CALL(sys_unlinkat)
.long _sys_renameat CALL(sys_renameat)
.long _sys_linkat CALL(sys_linkat)
.long _sys_symlinkat CALL(sys_symlinkat)
.long _sys_readlinkat /* 305 */ CALL(sys_readlinkat) /* 305 */
.long _sys_fchmodat CALL(sys_fchmodat)
.long _sys_faccessat CALL(sys_faccessat)
.long _sys_ni_syscall /* sys_pselect6 */ CALL(sys_ni_syscall) /* sys_pselect6 */
.long _sys_ni_syscall /* sys_ppoll */ CALL(sys_ni_syscall) /* sys_ppoll */
.long _sys_unshare /* 310 */ CALL(sys_unshare) /* 310 */
.long _sys_set_robust_list CALL(sys_set_robust_list)
.long _sys_get_robust_list CALL(sys_get_robust_list)
.long _sys_splice CALL(sys_splice)
.long _sys_sync_file_range CALL(sys_sync_file_range)
.long _sys_tee /* 315 */ CALL(sys_tee) /* 315 */
.long _sys_vmsplice CALL(sys_vmsplice)
.long _sys_ni_syscall /* sys_move_pages */ CALL(sys_ni_syscall) /* sys_move_pages */
.long _sys_getcpu CALL(sys_getcpu)
.long _sys_ni_syscall /* sys_epoll_pwait */ CALL(sys_ni_syscall) /* sys_epoll_pwait */
.long _sys_setns /* 320 */ CALL(sys_setns) /* 320 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment