syscalls_32.S 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. /*
  2. * arch/sh/kernel/syscalls.S
  3. *
  4. * System call table for SuperH
  5. *
  6. * Copyright (C) 1999, 2000, 2002 Niibe Yutaka
  7. * Copyright (C) 2003 Paul Mundt
  8. *
  9. * This file is subject to the terms and conditions of the GNU General Public
  10. * License. See the file "COPYING" in the main directory of this archive
  11. * for more details.
  12. *
  13. */
  14. #include <linux/sys.h>
  15. #include <linux/linkage.h>
  16. .data
  17. ENTRY(sys_call_table)
  18. .long sys_restart_syscall /* 0 - old "setup()" system call*/
  19. .long sys_exit
  20. .long sys_fork
  21. .long sys_read
  22. .long sys_write
  23. .long sys_open /* 5 */
  24. .long sys_close
  25. .long sys_waitpid
  26. .long sys_creat
  27. .long sys_link
  28. .long sys_unlink /* 10 */
  29. .long sys_execve
  30. .long sys_chdir
  31. .long sys_time
  32. .long sys_mknod
  33. .long sys_chmod /* 15 */
  34. .long sys_lchown16
  35. .long sys_ni_syscall /* old break syscall holder */
  36. .long sys_stat
  37. .long sys_lseek
  38. .long sys_getpid /* 20 */
  39. .long sys_mount
  40. .long sys_oldumount
  41. .long sys_setuid16
  42. .long sys_getuid16
  43. .long sys_stime /* 25 */
  44. .long sys_ptrace
  45. .long sys_alarm
  46. .long sys_fstat
  47. .long sys_pause
  48. .long sys_utime /* 30 */
  49. .long sys_ni_syscall /* old stty syscall holder */
  50. .long sys_ni_syscall /* old gtty syscall holder */
  51. .long sys_access
  52. .long sys_nice
  53. .long sys_ni_syscall /* 35 */ /* old ftime syscall holder */
  54. .long sys_sync
  55. .long sys_kill
  56. .long sys_rename
  57. .long sys_mkdir
  58. .long sys_rmdir /* 40 */
  59. .long sys_dup
  60. .long sys_sh_pipe
  61. .long sys_times
  62. .long sys_ni_syscall /* old prof syscall holder */
  63. .long sys_brk /* 45 */
  64. .long sys_setgid16
  65. .long sys_getgid16
  66. .long sys_signal
  67. .long sys_geteuid16
  68. .long sys_getegid16 /* 50 */
  69. .long sys_acct
  70. .long sys_umount /* recycled never used phys() */
  71. .long sys_ni_syscall /* old lock syscall holder */
  72. .long sys_ioctl
  73. .long sys_fcntl /* 55 */
  74. .long sys_ni_syscall /* old mpx syscall holder */
  75. .long sys_setpgid
  76. .long sys_ni_syscall /* old ulimit syscall holder */
  77. .long sys_ni_syscall /* sys_olduname */
  78. .long sys_umask /* 60 */
  79. .long sys_chroot
  80. .long sys_ustat
  81. .long sys_dup2
  82. .long sys_getppid
  83. .long sys_getpgrp /* 65 */
  84. .long sys_setsid
  85. .long sys_sigaction
  86. .long sys_sgetmask
  87. .long sys_ssetmask
  88. .long sys_setreuid16 /* 70 */
  89. .long sys_setregid16
  90. .long sys_sigsuspend
  91. .long sys_sigpending
  92. .long sys_sethostname
  93. .long sys_setrlimit /* 75 */
  94. .long sys_old_getrlimit
  95. .long sys_getrusage
  96. .long sys_gettimeofday
  97. .long sys_settimeofday
  98. .long sys_getgroups16 /* 80 */
  99. .long sys_setgroups16
  100. .long sys_ni_syscall /* sys_oldselect */
  101. .long sys_symlink
  102. .long sys_lstat
  103. .long sys_readlink /* 85 */
  104. .long sys_uselib
  105. .long sys_swapon
  106. .long sys_reboot
  107. .long sys_old_readdir
  108. .long old_mmap /* 90 */
  109. .long sys_munmap
  110. .long sys_truncate
  111. .long sys_ftruncate
  112. .long sys_fchmod
  113. .long sys_fchown16 /* 95 */
  114. .long sys_getpriority
  115. .long sys_setpriority
  116. .long sys_ni_syscall /* old profil syscall holder */
  117. .long sys_statfs
  118. .long sys_fstatfs /* 100 */
  119. .long sys_ni_syscall /* ioperm */
  120. .long sys_socketcall
  121. .long sys_syslog
  122. .long sys_setitimer
  123. .long sys_getitimer /* 105 */
  124. .long sys_newstat
  125. .long sys_newlstat
  126. .long sys_newfstat
  127. .long sys_uname
  128. .long sys_ni_syscall /* 110 */ /* iopl */
  129. .long sys_vhangup
  130. .long sys_ni_syscall /* idle */
  131. .long sys_ni_syscall /* vm86old */
  132. .long sys_wait4
  133. .long sys_swapoff /* 115 */
  134. .long sys_sysinfo
  135. .long sys_ipc
  136. .long sys_fsync
  137. .long sys_sigreturn
  138. .long sys_clone /* 120 */
  139. .long sys_setdomainname
  140. .long sys_newuname
  141. .long sys_cacheflush /* x86: sys_modify_ldt */
  142. .long sys_adjtimex
  143. .long sys_mprotect /* 125 */
  144. .long sys_sigprocmask
  145. .long sys_ni_syscall /* old "create_module" */
  146. .long sys_init_module
  147. .long sys_delete_module
  148. .long sys_ni_syscall /* 130: old "get_kernel_syms" */
  149. .long sys_quotactl
  150. .long sys_getpgid
  151. .long sys_fchdir
  152. .long sys_bdflush
  153. .long sys_sysfs /* 135 */
  154. .long sys_personality
  155. .long sys_ni_syscall /* for afs_syscall */
  156. .long sys_setfsuid16
  157. .long sys_setfsgid16
  158. .long sys_llseek /* 140 */
  159. .long sys_getdents
  160. .long sys_select
  161. .long sys_flock
  162. .long sys_msync
  163. .long sys_readv /* 145 */
  164. .long sys_writev
  165. .long sys_getsid
  166. .long sys_fdatasync
  167. .long sys_sysctl
  168. .long sys_mlock /* 150 */
  169. .long sys_munlock
  170. .long sys_mlockall
  171. .long sys_munlockall
  172. .long sys_sched_setparam
  173. .long sys_sched_getparam /* 155 */
  174. .long sys_sched_setscheduler
  175. .long sys_sched_getscheduler
  176. .long sys_sched_yield
  177. .long sys_sched_get_priority_max
  178. .long sys_sched_get_priority_min /* 160 */
  179. .long sys_sched_rr_get_interval
  180. .long sys_nanosleep
  181. .long sys_mremap
  182. .long sys_setresuid16
  183. .long sys_getresuid16 /* 165 */
  184. .long sys_ni_syscall /* vm86 */
  185. .long sys_ni_syscall /* old "query_module" */
  186. .long sys_poll
  187. .long sys_ni_syscall /* was nfsservctl */
  188. .long sys_setresgid16 /* 170 */
  189. .long sys_getresgid16
  190. .long sys_prctl
  191. .long sys_rt_sigreturn
  192. .long sys_rt_sigaction
  193. .long sys_rt_sigprocmask /* 175 */
  194. .long sys_rt_sigpending
  195. .long sys_rt_sigtimedwait
  196. .long sys_rt_sigqueueinfo
  197. .long sys_rt_sigsuspend
  198. .long sys_pread_wrapper /* 180 */
  199. .long sys_pwrite_wrapper
  200. .long sys_chown16
  201. .long sys_getcwd
  202. .long sys_capget
  203. .long sys_capset /* 185 */
  204. .long sys_sigaltstack
  205. .long sys_sendfile
  206. .long sys_ni_syscall /* getpmsg */
  207. .long sys_ni_syscall /* putpmsg */
  208. .long sys_vfork /* 190 */
  209. .long sys_getrlimit
  210. .long sys_mmap2
  211. .long sys_truncate64
  212. .long sys_ftruncate64
  213. .long sys_stat64 /* 195 */
  214. .long sys_lstat64
  215. .long sys_fstat64
  216. .long sys_lchown
  217. .long sys_getuid
  218. .long sys_getgid /* 200 */
  219. .long sys_geteuid
  220. .long sys_getegid
  221. .long sys_setreuid
  222. .long sys_setregid
  223. .long sys_getgroups /* 205 */
  224. .long sys_setgroups
  225. .long sys_fchown
  226. .long sys_setresuid
  227. .long sys_getresuid
  228. .long sys_setresgid /* 210 */
  229. .long sys_getresgid
  230. .long sys_chown
  231. .long sys_setuid
  232. .long sys_setgid
  233. .long sys_setfsuid /* 215 */
  234. .long sys_setfsgid
  235. .long sys_pivot_root
  236. .long sys_mincore
  237. .long sys_madvise
  238. .long sys_getdents64 /* 220 */
  239. .long sys_fcntl64
  240. .long sys_ni_syscall /* reserved for TUX */
  241. .long sys_ni_syscall /* Reserved for Security */
  242. .long sys_gettid
  243. .long sys_readahead /* 225 */
  244. .long sys_setxattr
  245. .long sys_lsetxattr
  246. .long sys_fsetxattr
  247. .long sys_getxattr
  248. .long sys_lgetxattr /* 230 */
  249. .long sys_fgetxattr
  250. .long sys_listxattr
  251. .long sys_llistxattr
  252. .long sys_flistxattr
  253. .long sys_removexattr /* 235 */
  254. .long sys_lremovexattr
  255. .long sys_fremovexattr
  256. .long sys_tkill
  257. .long sys_sendfile64
  258. .long sys_futex /* 240 */
  259. .long sys_sched_setaffinity
  260. .long sys_sched_getaffinity
  261. .long sys_ni_syscall /* reserved for set_thread_area */
  262. .long sys_ni_syscall /* reserved for get_thread_area */
  263. .long sys_io_setup /* 245 */
  264. .long sys_io_destroy
  265. .long sys_io_getevents
  266. .long sys_io_submit
  267. .long sys_io_cancel
  268. .long sys_fadvise64 /* 250 */
  269. .long sys_ni_syscall
  270. .long sys_exit_group
  271. .long sys_lookup_dcookie
  272. .long sys_epoll_create
  273. .long sys_epoll_ctl /* 255 */
  274. .long sys_epoll_wait
  275. .long sys_remap_file_pages
  276. .long sys_set_tid_address
  277. .long sys_timer_create
  278. .long sys_timer_settime /* 260 */
  279. .long sys_timer_gettime
  280. .long sys_timer_getoverrun
  281. .long sys_timer_delete
  282. .long sys_clock_settime
  283. .long sys_clock_gettime /* 265 */
  284. .long sys_clock_getres
  285. .long sys_clock_nanosleep
  286. .long sys_statfs64
  287. .long sys_fstatfs64
  288. .long sys_tgkill /* 270 */
  289. .long sys_utimes
  290. .long sys_fadvise64_64_wrapper
  291. .long sys_ni_syscall /* Reserved for vserver */
  292. .long sys_mbind
  293. .long sys_get_mempolicy /* 275 */
  294. .long sys_set_mempolicy
  295. .long sys_mq_open
  296. .long sys_mq_unlink
  297. .long sys_mq_timedsend
  298. .long sys_mq_timedreceive /* 280 */
  299. .long sys_mq_notify
  300. .long sys_mq_getsetattr
  301. .long sys_kexec_load
  302. .long sys_waitid
  303. .long sys_add_key /* 285 */
  304. .long sys_request_key
  305. .long sys_keyctl
  306. .long sys_ioprio_set
  307. .long sys_ioprio_get
  308. .long sys_inotify_init /* 290 */
  309. .long sys_inotify_add_watch
  310. .long sys_inotify_rm_watch
  311. .long sys_ni_syscall
  312. .long sys_migrate_pages
  313. .long sys_openat /* 295 */
  314. .long sys_mkdirat
  315. .long sys_mknodat
  316. .long sys_fchownat
  317. .long sys_futimesat
  318. .long sys_fstatat64 /* 300 */
  319. .long sys_unlinkat
  320. .long sys_renameat
  321. .long sys_linkat
  322. .long sys_symlinkat
  323. .long sys_readlinkat /* 305 */
  324. .long sys_fchmodat
  325. .long sys_faccessat
  326. .long sys_pselect6
  327. .long sys_ppoll
  328. .long sys_unshare /* 310 */
  329. .long sys_set_robust_list
  330. .long sys_get_robust_list
  331. .long sys_splice
  332. .long sys_sync_file_range
  333. .long sys_tee /* 315 */
  334. .long sys_vmsplice
  335. .long sys_move_pages
  336. .long sys_getcpu
  337. .long sys_epoll_pwait
  338. .long sys_utimensat /* 320 */
  339. .long sys_signalfd
  340. .long sys_timerfd_create
  341. .long sys_eventfd
  342. .long sys_fallocate
  343. .long sys_timerfd_settime /* 325 */
  344. .long sys_timerfd_gettime
  345. .long sys_signalfd4
  346. .long sys_eventfd2
  347. .long sys_epoll_create1
  348. .long sys_dup3 /* 330 */
  349. .long sys_pipe2
  350. .long sys_inotify_init1
  351. .long sys_preadv
  352. .long sys_pwritev
  353. .long sys_rt_tgsigqueueinfo /* 335 */
  354. .long sys_perf_event_open
  355. .long sys_fanotify_init
  356. .long sys_fanotify_mark
  357. .long sys_prlimit64
  358. /* Broken-out socket family */
  359. .long sys_socket /* 340 */
  360. .long sys_bind
  361. .long sys_connect
  362. .long sys_listen
  363. .long sys_accept
  364. .long sys_getsockname /* 345 */
  365. .long sys_getpeername
  366. .long sys_socketpair
  367. .long sys_send
  368. .long sys_sendto
  369. .long sys_recv /* 350 */
  370. .long sys_recvfrom
  371. .long sys_shutdown
  372. .long sys_setsockopt
  373. .long sys_getsockopt
  374. .long sys_sendmsg /* 355 */
  375. .long sys_recvmsg
  376. .long sys_recvmmsg
  377. .long sys_accept4
  378. .long sys_name_to_handle_at
  379. .long sys_open_by_handle_at /* 360 */
  380. .long sys_clock_adjtime
  381. .long sys_syncfs
  382. .long sys_sendmmsg
  383. .long sys_setns
  384. .long sys_process_vm_readv /* 365 */
  385. .long sys_process_vm_writev
  386. .long sys_kcmp
  387. .long sys_finit_module
  388. .long sys_sched_getattr
  389. .long sys_sched_setattr /* 370 */
  390. .long sys_renameat2
  391. .long sys_seccomp
  392. .long sys_getrandom
  393. .long sys_memfd_create
  394. .long sys_bpf /* 375 */
  395. .long sys_execveat
  396. .long sys_userfaultfd
  397. .long sys_membarrier
  398. .long sys_mlock2
  399. .long sys_copy_file_range /* 380 */
  400. .long sys_preadv2
  401. .long sys_pwritev2