calls.S
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:9k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  *  linux/arch/arm/lib/calls.h
  3.  *
  4.  *  Copyright (C) 1995-1998 Russell King
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License version 2 as
  8.  * published by the Free Software Foundation.
  9.  *
  10.  *  This file is included twice in entry-common.S
  11.  */
  12. #ifndef NR_syscalls
  13. #define NR_syscalls 256
  14. #else
  15. __syscall_start:
  16. /* 0 */ .long SYMBOL_NAME(sys_ni_syscall)
  17. .long SYMBOL_NAME(sys_exit)
  18. .long SYMBOL_NAME(sys_fork_wrapper)
  19. .long SYMBOL_NAME(sys_read)
  20. .long SYMBOL_NAME(sys_write)
  21. /* 5 */ .long SYMBOL_NAME(sys_open)
  22. .long SYMBOL_NAME(sys_close)
  23. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_waitpid */
  24. .long SYMBOL_NAME(sys_creat)
  25. .long SYMBOL_NAME(sys_link)
  26. /* 10 */ .long SYMBOL_NAME(sys_unlink)
  27. .long SYMBOL_NAME(sys_execve_wrapper)
  28. .long SYMBOL_NAME(sys_chdir)
  29. .long SYMBOL_NAME(sys_time) /* used by libc4 */
  30. .long SYMBOL_NAME(sys_mknod)
  31. /* 15 */ .long SYMBOL_NAME(sys_chmod)
  32. .long SYMBOL_NAME(sys_lchown16)
  33. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_break */
  34. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_stat */
  35. .long SYMBOL_NAME(sys_lseek)
  36. /* 20 */ .long SYMBOL_NAME(sys_getpid)
  37. .long SYMBOL_NAME(sys_mount)
  38. .long SYMBOL_NAME(sys_oldumount) /* used by libc4 */
  39. .long SYMBOL_NAME(sys_setuid16)
  40. .long SYMBOL_NAME(sys_getuid16)
  41. /* 25 */ .long SYMBOL_NAME(sys_stime)
  42. .long SYMBOL_NAME(sys_ptrace)
  43. .long SYMBOL_NAME(sys_alarm) /* used by libc4 */
  44. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_fstat */
  45. .long SYMBOL_NAME(sys_pause)
  46. /* 30 */ .long SYMBOL_NAME(sys_utime) /* used by libc4 */
  47. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_stty */
  48. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_getty */
  49. .long SYMBOL_NAME(sys_access)
  50. .long SYMBOL_NAME(sys_nice)
  51. /* 35 */ .long SYMBOL_NAME(sys_ni_syscall) /* was sys_ftime */
  52. .long SYMBOL_NAME(sys_sync)
  53. .long SYMBOL_NAME(sys_kill)
  54. .long SYMBOL_NAME(sys_rename)
  55. .long SYMBOL_NAME(sys_mkdir)
  56. /* 40 */ .long SYMBOL_NAME(sys_rmdir)
  57. .long SYMBOL_NAME(sys_dup)
  58. .long SYMBOL_NAME(sys_pipe)
  59. .long SYMBOL_NAME(sys_times)
  60. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_prof */
  61. /* 45 */ .long SYMBOL_NAME(sys_brk)
  62. .long SYMBOL_NAME(sys_setgid16)
  63. .long SYMBOL_NAME(sys_getgid16)
  64. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_signal */
  65. .long SYMBOL_NAME(sys_geteuid16)
  66. /* 50 */ .long SYMBOL_NAME(sys_getegid16)
  67. .long SYMBOL_NAME(sys_acct)
  68. .long SYMBOL_NAME(sys_umount)
  69. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_lock */
  70. .long SYMBOL_NAME(sys_ioctl)
  71. /* 55 */ .long SYMBOL_NAME(sys_fcntl)
  72. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_mpx */
  73. .long SYMBOL_NAME(sys_setpgid)
  74. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_ulimit */
  75. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_olduname */
  76. /* 60 */ .long SYMBOL_NAME(sys_umask)
  77. .long SYMBOL_NAME(sys_chroot)
  78. .long SYMBOL_NAME(sys_ustat)
  79. .long SYMBOL_NAME(sys_dup2)
  80. .long SYMBOL_NAME(sys_getppid)
  81. /* 65 */ .long SYMBOL_NAME(sys_getpgrp)
  82. .long SYMBOL_NAME(sys_setsid)
  83. .long SYMBOL_NAME(sys_sigaction)
  84. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_sgetmask */
  85. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_ssetmask */
  86. /* 70 */ .long SYMBOL_NAME(sys_setreuid16)
  87. .long SYMBOL_NAME(sys_setregid16)
  88. .long SYMBOL_NAME(sys_sigsuspend_wrapper)
  89. .long SYMBOL_NAME(sys_sigpending)
  90. .long SYMBOL_NAME(sys_sethostname)
  91. /* 75 */ .long SYMBOL_NAME(sys_setrlimit)
  92. .long SYMBOL_NAME(sys_old_getrlimit) /* used by libc4 */
  93. .long SYMBOL_NAME(sys_getrusage)
  94. .long SYMBOL_NAME(sys_gettimeofday)
  95. .long SYMBOL_NAME(sys_settimeofday)
  96. /* 80 */ .long SYMBOL_NAME(sys_getgroups16)
  97. .long SYMBOL_NAME(sys_setgroups16)
  98. .long SYMBOL_NAME(old_select) /* used by libc4 */
  99. .long SYMBOL_NAME(sys_symlink)
  100. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_lstat */
  101. /* 85 */ .long SYMBOL_NAME(sys_readlink)
  102. .long SYMBOL_NAME(sys_uselib)
  103. .long SYMBOL_NAME(sys_swapon)
  104. .long SYMBOL_NAME(sys_reboot)
  105. .long SYMBOL_NAME(old_readdir) /* used by libc4 */
  106. /* 90 */ .long SYMBOL_NAME(old_mmap) /* used by libc4 */
  107. .long SYMBOL_NAME(sys_munmap)
  108. .long SYMBOL_NAME(sys_truncate)
  109. .long SYMBOL_NAME(sys_ftruncate)
  110. .long SYMBOL_NAME(sys_fchmod)
  111. /* 95 */ .long SYMBOL_NAME(sys_fchown16)
  112. .long SYMBOL_NAME(sys_getpriority)
  113. .long SYMBOL_NAME(sys_setpriority)
  114. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_profil */
  115. .long SYMBOL_NAME(sys_statfs)
  116. /* 100 */ .long SYMBOL_NAME(sys_fstatfs)
  117. .long SYMBOL_NAME(sys_ni_syscall)
  118. .long SYMBOL_NAME(sys_socketcall)
  119. .long SYMBOL_NAME(sys_syslog)
  120. .long SYMBOL_NAME(sys_setitimer)
  121. /* 105 */ .long SYMBOL_NAME(sys_getitimer)
  122. .long SYMBOL_NAME(sys_newstat)
  123. .long SYMBOL_NAME(sys_newlstat)
  124. .long SYMBOL_NAME(sys_newfstat)
  125. .long SYMBOL_NAME(sys_ni_syscall) /* was sys_uname */
  126. /* 110 */ .long SYMBOL_NAME(sys_ni_syscall) /* was sys_iopl */
  127. .long SYMBOL_NAME(sys_vhangup)
  128. .long SYMBOL_NAME(sys_ni_syscall)
  129. .long SYMBOL_NAME(sys_syscall) /* call a syscall */
  130. .long SYMBOL_NAME(sys_wait4)
  131. /* 115 */ .long SYMBOL_NAME(sys_swapoff)
  132. .long SYMBOL_NAME(sys_sysinfo)
  133. .long SYMBOL_NAME(sys_ipc)
  134. .long SYMBOL_NAME(sys_fsync)
  135. .long SYMBOL_NAME(sys_sigreturn_wrapper)
  136. /* 120 */ .long SYMBOL_NAME(sys_clone_wapper)
  137. .long SYMBOL_NAME(sys_setdomainname)
  138. .long SYMBOL_NAME(sys_newuname)
  139. .long SYMBOL_NAME(sys_ni_syscall)
  140. .long SYMBOL_NAME(sys_adjtimex)
  141. /* 125 */ .long SYMBOL_NAME(sys_mprotect)
  142. .long SYMBOL_NAME(sys_sigprocmask)
  143. .long SYMBOL_NAME(sys_create_module)
  144. .long SYMBOL_NAME(sys_init_module)
  145. .long SYMBOL_NAME(sys_delete_module)
  146. /* 130 */ .long SYMBOL_NAME(sys_get_kernel_syms)
  147. .long SYMBOL_NAME(sys_quotactl)
  148. .long SYMBOL_NAME(sys_getpgid)
  149. .long SYMBOL_NAME(sys_fchdir)
  150. .long SYMBOL_NAME(sys_bdflush)
  151. /* 135 */ .long SYMBOL_NAME(sys_sysfs)
  152. .long SYMBOL_NAME(sys_personality)
  153. .long SYMBOL_NAME(sys_ni_syscall) /* .long _sys_afs_syscall */
  154. .long SYMBOL_NAME(sys_setfsuid16)
  155. .long SYMBOL_NAME(sys_setfsgid16)
  156. /* 140 */ .long SYMBOL_NAME(sys_llseek)
  157. .long SYMBOL_NAME(sys_getdents)
  158. .long SYMBOL_NAME(sys_select)
  159. .long SYMBOL_NAME(sys_flock)
  160. .long SYMBOL_NAME(sys_msync)
  161. /* 145 */ .long SYMBOL_NAME(sys_readv)
  162. .long SYMBOL_NAME(sys_writev)
  163. .long SYMBOL_NAME(sys_getsid)
  164. .long SYMBOL_NAME(sys_fdatasync)
  165. .long SYMBOL_NAME(sys_sysctl)
  166. /* 150 */ .long SYMBOL_NAME(sys_mlock)
  167. .long SYMBOL_NAME(sys_munlock)
  168. .long SYMBOL_NAME(sys_mlockall)
  169. .long SYMBOL_NAME(sys_munlockall)
  170. .long SYMBOL_NAME(sys_sched_setparam)
  171. /* 155 */ .long SYMBOL_NAME(sys_sched_getparam)
  172. .long SYMBOL_NAME(sys_sched_setscheduler)
  173. .long SYMBOL_NAME(sys_sched_getscheduler)
  174. .long SYMBOL_NAME(sys_sched_yield)
  175. .long SYMBOL_NAME(sys_sched_get_priority_max)
  176. /* 160 */ .long SYMBOL_NAME(sys_sched_get_priority_min)
  177. .long SYMBOL_NAME(sys_sched_rr_get_interval)
  178. .long SYMBOL_NAME(sys_nanosleep)
  179. .long SYMBOL_NAME(sys_arm_mremap)
  180. .long SYMBOL_NAME(sys_setresuid16)
  181. /* 165 */ .long SYMBOL_NAME(sys_getresuid16)
  182. .long SYMBOL_NAME(sys_ni_syscall)
  183. .long SYMBOL_NAME(sys_query_module)
  184. .long SYMBOL_NAME(sys_poll)
  185. .long SYMBOL_NAME(sys_nfsservctl)
  186. /* 170 */ .long SYMBOL_NAME(sys_setresgid16)
  187. .long SYMBOL_NAME(sys_getresgid16)
  188. .long SYMBOL_NAME(sys_prctl)
  189. .long SYMBOL_NAME(sys_rt_sigreturn_wrapper)
  190. .long SYMBOL_NAME(sys_rt_sigaction)
  191. /* 175 */ .long SYMBOL_NAME(sys_rt_sigprocmask)
  192. .long SYMBOL_NAME(sys_rt_sigpending)
  193. .long SYMBOL_NAME(sys_rt_sigtimedwait)
  194. .long SYMBOL_NAME(sys_rt_sigqueueinfo)
  195. .long SYMBOL_NAME(sys_rt_sigsuspend_wrapper)
  196. /* 180 */ .long SYMBOL_NAME(sys_pread)
  197. .long SYMBOL_NAME(sys_pwrite)
  198. .long SYMBOL_NAME(sys_chown16)
  199. .long SYMBOL_NAME(sys_getcwd)
  200. .long SYMBOL_NAME(sys_capget)
  201. /* 185 */ .long SYMBOL_NAME(sys_capset)
  202. .long SYMBOL_NAME(sys_sigaltstack_wrapper)
  203. .long SYMBOL_NAME(sys_sendfile)
  204. .long SYMBOL_NAME(sys_ni_syscall)
  205. .long SYMBOL_NAME(sys_ni_syscall)
  206. /* 190 */ .long SYMBOL_NAME(sys_vfork_wrapper)
  207. .long SYMBOL_NAME(sys_getrlimit)
  208. .long SYMBOL_NAME(sys_mmap2)
  209. .long SYMBOL_NAME(sys_truncate64)
  210. .long SYMBOL_NAME(sys_ftruncate64)
  211. /* 195 */ .long SYMBOL_NAME(sys_stat64)
  212. .long SYMBOL_NAME(sys_lstat64)
  213. .long SYMBOL_NAME(sys_fstat64)
  214. .long SYMBOL_NAME(sys_lchown)
  215. .long SYMBOL_NAME(sys_getuid)
  216. /* 200 */ .long SYMBOL_NAME(sys_getgid)
  217. .long SYMBOL_NAME(sys_geteuid)
  218. .long SYMBOL_NAME(sys_getegid)
  219. .long SYMBOL_NAME(sys_setreuid)
  220. .long SYMBOL_NAME(sys_setregid)
  221. /* 205 */ .long SYMBOL_NAME(sys_getgroups)
  222. .long SYMBOL_NAME(sys_setgroups)
  223. .long SYMBOL_NAME(sys_fchown)
  224. .long SYMBOL_NAME(sys_setresuid)
  225. .long SYMBOL_NAME(sys_getresuid)
  226. /* 210 */ .long SYMBOL_NAME(sys_setresgid)
  227. .long SYMBOL_NAME(sys_getresgid)
  228. .long SYMBOL_NAME(sys_chown)
  229. .long SYMBOL_NAME(sys_setuid)
  230. .long SYMBOL_NAME(sys_setgid)
  231. /* 215 */ .long SYMBOL_NAME(sys_setfsuid)
  232. .long SYMBOL_NAME(sys_setfsgid)
  233. .long SYMBOL_NAME(sys_getdents64)
  234. .long SYMBOL_NAME(sys_pivot_root)
  235. .long SYMBOL_NAME(sys_mincore)
  236. /* 220 */ .long SYMBOL_NAME(sys_madvise)
  237. .long SYMBOL_NAME(sys_fcntl64)
  238. .long SYMBOL_NAME(sys_ni_syscall) /* TUX */
  239. .long SYMBOL_NAME(sys_ni_syscall) /* Security */
  240. .long SYMBOL_NAME(sys_gettid)
  241. /* 225 */ .long SYMBOL_NAME(sys_readahead)
  242. __syscall_end:
  243. .rept NR_syscalls - (__syscall_end - __syscall_start) / 4
  244. .long SYMBOL_NAME(sys_ni_syscall)
  245. .endr
  246. #endif