entry.S 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. ###############################################################################
  2. #
  3. # MN10300 Exception and interrupt entry points
  4. #
  5. # Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
  6. # Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  7. # Modified by David Howells (dhowells@redhat.com)
  8. #
  9. # This program is free software; you can redistribute it and/or
  10. # modify it under the terms of the GNU General Public Licence
  11. # as published by the Free Software Foundation; either version
  12. # 2 of the Licence, or (at your option) any later version.
  13. #
  14. ###############################################################################
  15. #include <linux/sys.h>
  16. #include <linux/linkage.h>
  17. #include <asm/smp.h>
  18. #include <asm/irqflags.h>
  19. #include <asm/thread_info.h>
  20. #include <asm/intctl-regs.h>
  21. #include <asm/busctl-regs.h>
  22. #include <asm/timer-regs.h>
  23. #include <unit/leds.h>
  24. #include <asm/page.h>
  25. #include <asm/pgtable.h>
  26. #include <asm/errno.h>
  27. #include <asm/asm-offsets.h>
  28. #include <asm/frame.inc>
  29. #if defined(CONFIG_SMP) && defined(CONFIG_GDBSTUB)
  30. #include <asm/gdb-stub.h>
  31. #endif /* CONFIG_SMP && CONFIG_GDBSTUB */
  32. #ifdef CONFIG_PREEMPT
  33. #define preempt_stop LOCAL_IRQ_DISABLE
  34. #else
  35. #define preempt_stop
  36. #define resume_kernel restore_all
  37. #endif
  38. .am33_2
  39. ###############################################################################
  40. #
  41. # the return path for a forked child
  42. # - on entry, D0 holds the address of the previous task to run
  43. #
  44. ###############################################################################
  45. ENTRY(ret_from_fork)
  46. call schedule_tail[],0
  47. GET_THREAD_INFO a2
  48. # return 0 to indicate child process
  49. clr d0
  50. mov d0,(REG_D0,fp)
  51. jmp syscall_exit
  52. ###############################################################################
  53. #
  54. # system call handler
  55. #
  56. ###############################################################################
  57. ENTRY(system_call)
  58. add -4,sp
  59. SAVE_ALL
  60. mov d0,(REG_ORIG_D0,fp)
  61. GET_THREAD_INFO a2
  62. cmp nr_syscalls,d0
  63. bcc syscall_badsys
  64. btst _TIF_SYSCALL_TRACE,(TI_flags,a2)
  65. bne syscall_entry_trace
  66. syscall_call:
  67. add d0,d0,a1
  68. add a1,a1
  69. mov (REG_A0,fp),d0
  70. mov (sys_call_table,a1),a0
  71. calls (a0)
  72. mov d0,(REG_D0,fp)
  73. syscall_exit:
  74. # make sure we don't miss an interrupt setting need_resched or
  75. # sigpending between sampling and the rti
  76. LOCAL_IRQ_DISABLE
  77. mov (TI_flags,a2),d2
  78. btst _TIF_ALLWORK_MASK,d2
  79. bne syscall_exit_work
  80. restore_all:
  81. RESTORE_ALL
  82. ###############################################################################
  83. #
  84. # perform work that needs to be done immediately before resumption and syscall
  85. # tracing
  86. #
  87. ###############################################################################
  88. ALIGN
  89. syscall_exit_work:
  90. btst _TIF_SYSCALL_TRACE,d2
  91. beq work_pending
  92. LOCAL_IRQ_ENABLE # could let syscall_trace_exit() call
  93. # schedule() instead
  94. mov fp,d0
  95. call syscall_trace_exit[],0 # do_syscall_trace(regs)
  96. jmp resume_userspace
  97. ALIGN
  98. work_pending:
  99. btst _TIF_NEED_RESCHED,d2
  100. beq work_notifysig
  101. work_resched:
  102. call schedule[],0
  103. # make sure we don't miss an interrupt setting need_resched or
  104. # sigpending between sampling and the rti
  105. LOCAL_IRQ_DISABLE
  106. # is there any work to be done other than syscall tracing?
  107. mov (TI_flags,a2),d2
  108. btst _TIF_WORK_MASK,d2
  109. beq restore_all
  110. btst _TIF_NEED_RESCHED,d2
  111. bne work_resched
  112. # deal with pending signals and notify-resume requests
  113. work_notifysig:
  114. mov fp,d0
  115. mov d2,d1
  116. call do_notify_resume[],0
  117. jmp resume_userspace
  118. # perform syscall entry tracing
  119. syscall_entry_trace:
  120. mov -ENOSYS,d0
  121. mov d0,(REG_D0,fp)
  122. mov fp,d0
  123. call syscall_trace_entry[],0 # returns the syscall number to actually use
  124. mov (REG_D1,fp),d1
  125. cmp nr_syscalls,d0
  126. bcs syscall_call
  127. jmp syscall_exit
  128. syscall_badsys:
  129. mov -ENOSYS,d0
  130. mov d0,(REG_D0,fp)
  131. jmp resume_userspace
  132. # userspace resumption stub bypassing syscall exit tracing
  133. .globl ret_from_exception, ret_from_intr
  134. ALIGN
  135. ret_from_exception:
  136. preempt_stop
  137. ret_from_intr:
  138. GET_THREAD_INFO a2
  139. mov (REG_EPSW,fp),d0 # need to deliver signals before
  140. # returning to userspace
  141. and EPSW_nSL,d0
  142. beq resume_kernel # returning to supervisor mode
  143. ENTRY(resume_userspace)
  144. # make sure we don't miss an interrupt setting need_resched or
  145. # sigpending between sampling and the rti
  146. LOCAL_IRQ_DISABLE
  147. # is there any work to be done on int/exception return?
  148. mov (TI_flags,a2),d2
  149. btst _TIF_WORK_MASK,d2
  150. bne work_pending
  151. jmp restore_all
  152. #ifdef CONFIG_PREEMPT
  153. ENTRY(resume_kernel)
  154. LOCAL_IRQ_DISABLE
  155. mov (TI_preempt_count,a2),d0 # non-zero preempt_count ?
  156. cmp 0,d0
  157. bne restore_all
  158. need_resched:
  159. btst _TIF_NEED_RESCHED,(TI_flags,a2)
  160. beq restore_all
  161. mov (REG_EPSW,fp),d0
  162. and EPSW_IM,d0
  163. cmp EPSW_IM_7,d0 # interrupts off (exception path) ?
  164. bne restore_all
  165. call preempt_schedule_irq[],0
  166. jmp need_resched
  167. #endif
  168. ###############################################################################
  169. #
  170. # IRQ handler entry point
  171. # - intended to be entered at multiple priorities
  172. #
  173. ###############################################################################
  174. ENTRY(irq_handler)
  175. add -4,sp
  176. SAVE_ALL
  177. # it's not a syscall
  178. mov 0xffffffff,d0
  179. mov d0,(REG_ORIG_D0,fp)
  180. mov fp,d0
  181. call do_IRQ[],0 # do_IRQ(regs)
  182. jmp ret_from_intr
  183. ###############################################################################
  184. #
  185. # Double Fault handler entry point
  186. # - note that there will not be a stack, D0/A0 will hold EPSW/PC as were
  187. #
  188. ###############################################################################
  189. .section .bss
  190. .balign THREAD_SIZE
  191. .space THREAD_SIZE
  192. __df_stack:
  193. .previous
  194. ENTRY(double_fault)
  195. mov a0,(__df_stack-4) # PC as was
  196. mov d0,(__df_stack-8) # EPSW as was
  197. mn10300_set_dbfleds # display 'db-f' on the LEDs
  198. mov 0xaa55aa55,d0
  199. mov d0,(__df_stack-12) # no ORIG_D0
  200. mov sp,a0 # save corrupted SP
  201. mov __df_stack-12,sp # emergency supervisor stack
  202. SAVE_ALL
  203. mov a0,(REG_A0,fp) # save corrupted SP as A0 (which got
  204. # clobbered by the CPU)
  205. mov fp,d0
  206. calls do_double_fault
  207. double_fault_loop:
  208. bra double_fault_loop
  209. ###############################################################################
  210. #
  211. # Bus Error handler entry point
  212. # - handle external (async) bus errors separately
  213. #
  214. ###############################################################################
  215. ENTRY(raw_bus_error)
  216. add -4,sp
  217. mov d0,(sp)
  218. #if defined(CONFIG_ERRATUM_NEED_TO_RELOAD_MMUCTR)
  219. mov (MMUCTR),d0
  220. mov d0,(MMUCTR)
  221. #endif
  222. mov (BCBERR),d0 # what
  223. btst BCBERR_BEMR_DMA,d0 # see if it was an external bus error
  224. beq __common_exception_aux # it wasn't
  225. SAVE_ALL
  226. mov (BCBEAR),d1 # destination of erroneous access
  227. mov (REG_ORIG_D0,fp),d2
  228. mov d2,(REG_D0,fp)
  229. mov -1,d2
  230. mov d2,(REG_ORIG_D0,fp)
  231. add -4,sp
  232. mov fp,(12,sp) # frame pointer
  233. call io_bus_error[],0
  234. jmp restore_all
  235. ###############################################################################
  236. #
  237. # NMI exception entry points
  238. #
  239. # This is used by ordinary interrupt channels that have the GxICR_NMI bit set
  240. # in addition to the main NMI and Watchdog channels. SMP NMI IPIs use this
  241. # facility.
  242. #
  243. ###############################################################################
  244. ENTRY(nmi_handler)
  245. add -4,sp
  246. mov d0,(sp)
  247. mov (TBR),d0
  248. #ifdef CONFIG_SMP
  249. add -4,sp
  250. mov d0,(sp) # save d0(TBR)
  251. movhu (NMIAGR),d0
  252. and NMIAGR_GN,d0
  253. lsr 0x2,d0
  254. cmp CALL_FUNCTION_NMI_IPI,d0
  255. bne nmi_not_smp_callfunc # if not call function, jump
  256. # function call nmi ipi
  257. add 4,sp # no need to store TBR
  258. mov GxICR_DETECT,d0 # clear NMI request
  259. movbu d0,(GxICR(CALL_FUNCTION_NMI_IPI))
  260. movhu (GxICR(CALL_FUNCTION_NMI_IPI)),d0
  261. and ~EPSW_NMID,epsw # enable NMI
  262. mov (sp),d0 # restore d0
  263. SAVE_ALL
  264. call smp_nmi_call_function_interrupt[],0
  265. RESTORE_ALL
  266. nmi_not_smp_callfunc:
  267. #ifdef CONFIG_KERNEL_DEBUGGER
  268. cmp DEBUGGER_NMI_IPI,d0
  269. bne nmi_not_debugger # if not kernel debugger NMI IPI, jump
  270. # kernel debugger NMI IPI
  271. add 4,sp # no need to store TBR
  272. mov GxICR_DETECT,d0 # clear NMI
  273. movbu d0,(GxICR(DEBUGGER_NMI_IPI))
  274. movhu (GxICR(DEBUGGER_NMI_IPI)),d0
  275. and ~EPSW_NMID,epsw # enable NMI
  276. mov (sp),d0
  277. SAVE_ALL
  278. mov fp,d0 # arg 0: stacked register file
  279. mov a2,d1 # arg 1: exception number
  280. call debugger_nmi_interrupt[],0
  281. RESTORE_ALL
  282. nmi_not_debugger:
  283. #endif /* CONFIG_KERNEL_DEBUGGER */
  284. mov (sp),d0 # restore TBR to d0
  285. add 4,sp
  286. #endif /* CONFIG_SMP */
  287. bra __common_exception_nonmi
  288. ###############################################################################
  289. #
  290. # General exception entry point
  291. #
  292. ###############################################################################
  293. ENTRY(__common_exception)
  294. add -4,sp
  295. mov d0,(sp)
  296. #if defined(CONFIG_ERRATUM_NEED_TO_RELOAD_MMUCTR)
  297. mov (MMUCTR),d0
  298. mov d0,(MMUCTR)
  299. #endif
  300. __common_exception_aux:
  301. mov (TBR),d0
  302. and ~EPSW_NMID,epsw # turn NMIs back on if not NMI
  303. or EPSW_IE,epsw
  304. __common_exception_nonmi:
  305. and 0x0000FFFF,d0 # turn the exception code into a vector
  306. # table index
  307. btst 0x00000007,d0
  308. bne 1f
  309. cmp 0x00000400,d0
  310. bge 1f
  311. SAVE_ALL # build the stack frame
  312. mov (REG_D0,fp),a2 # get the exception number
  313. mov (REG_ORIG_D0,fp),d0
  314. mov d0,(REG_D0,fp)
  315. mov -1,d0
  316. mov d0,(REG_ORIG_D0,fp)
  317. #ifdef CONFIG_GDBSTUB
  318. #ifdef CONFIG_SMP
  319. call gdbstub_busy_check[],0
  320. and d0,d0 # check return value
  321. beq 2f
  322. #else /* CONFIG_SMP */
  323. btst 0x01,(gdbstub_busy)
  324. beq 2f
  325. #endif /* CONFIG_SMP */
  326. and ~EPSW_IE,epsw
  327. mov fp,d0
  328. mov a2,d1
  329. call gdbstub_exception[],0 # gdbstub itself caused an exception
  330. bra restore_all
  331. 2:
  332. #endif /* CONFIG_GDBSTUB */
  333. mov fp,d0 # arg 0: stacked register file
  334. mov a2,d1 # arg 1: exception number
  335. lsr 1,a2
  336. mov (exception_table,a2),a2
  337. calls (a2)
  338. jmp ret_from_exception
  339. 1: pi # BUG() equivalent
  340. ###############################################################################
  341. #
  342. # Exception handler functions table
  343. #
  344. ###############################################################################
  345. .data
  346. ENTRY(exception_table)
  347. .rept 0x400>>1
  348. .long uninitialised_exception
  349. .endr
  350. .previous
  351. ###############################################################################
  352. #
  353. # Change an entry in the exception table
  354. # - D0 exception code, D1 handler
  355. #
  356. ###############################################################################
  357. ENTRY(set_excp_vector)
  358. lsr 1,d0
  359. add exception_table,d0
  360. mov d1,(d0)
  361. mov 4,d1
  362. ret [],0
  363. ###############################################################################
  364. #
  365. # System call table
  366. #
  367. ###############################################################################
  368. .data
  369. ENTRY(sys_call_table)
  370. .long sys_restart_syscall /* 0 */
  371. .long sys_exit
  372. .long sys_fork
  373. .long sys_read
  374. .long sys_write
  375. .long sys_open /* 5 */
  376. .long sys_close
  377. .long sys_waitpid
  378. .long sys_creat
  379. .long sys_link
  380. .long sys_unlink /* 10 */
  381. .long sys_execve
  382. .long sys_chdir
  383. .long sys_time
  384. .long sys_mknod
  385. .long sys_chmod /* 15 */
  386. .long sys_lchown16
  387. .long sys_ni_syscall /* old break syscall holder */
  388. .long sys_stat
  389. .long sys_lseek
  390. .long sys_getpid /* 20 */
  391. .long sys_mount
  392. .long sys_oldumount
  393. .long sys_setuid16
  394. .long sys_getuid16
  395. .long sys_stime /* 25 */
  396. .long sys_ptrace
  397. .long sys_alarm
  398. .long sys_fstat
  399. .long sys_pause
  400. .long sys_utime /* 30 */
  401. .long sys_ni_syscall /* old stty syscall holder */
  402. .long sys_ni_syscall /* old gtty syscall holder */
  403. .long sys_access
  404. .long sys_nice
  405. .long sys_ni_syscall /* 35 - old ftime syscall holder */
  406. .long sys_sync
  407. .long sys_kill
  408. .long sys_rename
  409. .long sys_mkdir
  410. .long sys_rmdir /* 40 */
  411. .long sys_dup
  412. .long sys_pipe
  413. .long sys_times
  414. .long sys_ni_syscall /* old prof syscall holder */
  415. .long sys_brk /* 45 */
  416. .long sys_setgid16
  417. .long sys_getgid16
  418. .long sys_signal
  419. .long sys_geteuid16
  420. .long sys_getegid16 /* 50 */
  421. .long sys_acct
  422. .long sys_umount /* recycled never used phys() */
  423. .long sys_ni_syscall /* old lock syscall holder */
  424. .long sys_ioctl
  425. .long sys_fcntl /* 55 */
  426. .long sys_ni_syscall /* old mpx syscall holder */
  427. .long sys_setpgid
  428. .long sys_ni_syscall /* old ulimit syscall holder */
  429. .long sys_ni_syscall /* old sys_olduname */
  430. .long sys_umask /* 60 */
  431. .long sys_chroot
  432. .long sys_ustat
  433. .long sys_dup2
  434. .long sys_getppid
  435. .long sys_getpgrp /* 65 */
  436. .long sys_setsid
  437. .long sys_sigaction
  438. .long sys_sgetmask
  439. .long sys_ssetmask
  440. .long sys_setreuid16 /* 70 */
  441. .long sys_setregid16
  442. .long sys_sigsuspend
  443. .long sys_sigpending
  444. .long sys_sethostname
  445. .long sys_setrlimit /* 75 */
  446. .long sys_old_getrlimit
  447. .long sys_getrusage
  448. .long sys_gettimeofday
  449. .long sys_settimeofday
  450. .long sys_getgroups16 /* 80 */
  451. .long sys_setgroups16
  452. .long sys_old_select
  453. .long sys_symlink
  454. .long sys_lstat
  455. .long sys_readlink /* 85 */
  456. .long sys_uselib
  457. .long sys_swapon
  458. .long sys_reboot
  459. .long sys_old_readdir
  460. .long old_mmap /* 90 */
  461. .long sys_munmap
  462. .long sys_truncate
  463. .long sys_ftruncate
  464. .long sys_fchmod
  465. .long sys_fchown16 /* 95 */
  466. .long sys_getpriority
  467. .long sys_setpriority
  468. .long sys_ni_syscall /* old profil syscall holder */
  469. .long sys_statfs
  470. .long sys_fstatfs /* 100 */
  471. .long sys_ni_syscall /* ioperm */
  472. .long sys_socketcall
  473. .long sys_syslog
  474. .long sys_setitimer
  475. .long sys_getitimer /* 105 */
  476. .long sys_newstat
  477. .long sys_newlstat
  478. .long sys_newfstat
  479. .long sys_ni_syscall /* old sys_uname */
  480. .long sys_ni_syscall /* 110 - iopl */
  481. .long sys_vhangup
  482. .long sys_ni_syscall /* old "idle" system call */
  483. .long sys_ni_syscall /* vm86old */
  484. .long sys_wait4
  485. .long sys_swapoff /* 115 */
  486. .long sys_sysinfo
  487. .long sys_ipc
  488. .long sys_fsync
  489. .long sys_sigreturn
  490. .long sys_clone /* 120 */
  491. .long sys_setdomainname
  492. .long sys_newuname
  493. .long sys_ni_syscall /* modify_ldt */
  494. .long sys_adjtimex
  495. .long sys_mprotect /* 125 */
  496. .long sys_sigprocmask
  497. .long sys_ni_syscall /* old "create_module" */
  498. .long sys_init_module
  499. .long sys_delete_module
  500. .long sys_ni_syscall /* 130: old "get_kernel_syms" */
  501. .long sys_quotactl
  502. .long sys_getpgid
  503. .long sys_fchdir
  504. .long sys_bdflush
  505. .long sys_sysfs /* 135 */
  506. .long sys_personality
  507. .long sys_ni_syscall /* reserved for afs_syscall */
  508. .long sys_setfsuid16
  509. .long sys_setfsgid16
  510. .long sys_llseek /* 140 */
  511. .long sys_getdents
  512. .long sys_select
  513. .long sys_flock
  514. .long sys_msync
  515. .long sys_readv /* 145 */
  516. .long sys_writev
  517. .long sys_getsid
  518. .long sys_fdatasync
  519. .long sys_sysctl
  520. .long sys_mlock /* 150 */
  521. .long sys_munlock
  522. .long sys_mlockall
  523. .long sys_munlockall
  524. .long sys_sched_setparam
  525. .long sys_sched_getparam /* 155 */
  526. .long sys_sched_setscheduler
  527. .long sys_sched_getscheduler
  528. .long sys_sched_yield
  529. .long sys_sched_get_priority_max
  530. .long sys_sched_get_priority_min /* 160 */
  531. .long sys_sched_rr_get_interval
  532. .long sys_nanosleep
  533. .long sys_mremap
  534. .long sys_setresuid16
  535. .long sys_getresuid16 /* 165 */
  536. .long sys_ni_syscall /* vm86 */
  537. .long sys_ni_syscall /* Old sys_query_module */
  538. .long sys_poll
  539. .long sys_ni_syscall /* was nfsservctl */
  540. .long sys_setresgid16 /* 170 */
  541. .long sys_getresgid16
  542. .long sys_prctl
  543. .long sys_rt_sigreturn
  544. .long sys_rt_sigaction
  545. .long sys_rt_sigprocmask /* 175 */
  546. .long sys_rt_sigpending
  547. .long sys_rt_sigtimedwait
  548. .long sys_rt_sigqueueinfo
  549. .long sys_rt_sigsuspend
  550. .long sys_pread64 /* 180 */
  551. .long sys_pwrite64
  552. .long sys_chown16
  553. .long sys_getcwd
  554. .long sys_capget
  555. .long sys_capset /* 185 */
  556. .long sys_sigaltstack
  557. .long sys_sendfile
  558. .long sys_ni_syscall /* reserved for streams1 */
  559. .long sys_ni_syscall /* reserved for streams2 */
  560. .long sys_vfork /* 190 */
  561. .long sys_getrlimit
  562. .long sys_mmap_pgoff
  563. .long sys_truncate64
  564. .long sys_ftruncate64
  565. .long sys_stat64 /* 195 */
  566. .long sys_lstat64
  567. .long sys_fstat64
  568. .long sys_lchown
  569. .long sys_getuid
  570. .long sys_getgid /* 200 */
  571. .long sys_geteuid
  572. .long sys_getegid
  573. .long sys_setreuid
  574. .long sys_setregid
  575. .long sys_getgroups /* 205 */
  576. .long sys_setgroups
  577. .long sys_fchown
  578. .long sys_setresuid
  579. .long sys_getresuid
  580. .long sys_setresgid /* 210 */
  581. .long sys_getresgid
  582. .long sys_chown
  583. .long sys_setuid
  584. .long sys_setgid
  585. .long sys_setfsuid /* 215 */
  586. .long sys_setfsgid
  587. .long sys_pivot_root
  588. .long sys_mincore
  589. .long sys_madvise
  590. .long sys_getdents64 /* 220 */
  591. .long sys_fcntl64
  592. .long sys_ni_syscall /* reserved for TUX */
  593. .long sys_ni_syscall
  594. .long sys_gettid
  595. .long sys_readahead /* 225 */
  596. .long sys_setxattr
  597. .long sys_lsetxattr
  598. .long sys_fsetxattr
  599. .long sys_getxattr
  600. .long sys_lgetxattr /* 230 */
  601. .long sys_fgetxattr
  602. .long sys_listxattr
  603. .long sys_llistxattr
  604. .long sys_flistxattr
  605. .long sys_removexattr /* 235 */
  606. .long sys_lremovexattr
  607. .long sys_fremovexattr
  608. .long sys_tkill
  609. .long sys_sendfile64
  610. .long sys_futex /* 240 */
  611. .long sys_sched_setaffinity
  612. .long sys_sched_getaffinity
  613. .long sys_ni_syscall /* sys_set_thread_area */
  614. .long sys_ni_syscall /* sys_get_thread_area */
  615. .long sys_io_setup /* 245 */
  616. .long sys_io_destroy
  617. .long sys_io_getevents
  618. .long sys_io_submit
  619. .long sys_io_cancel
  620. .long sys_fadvise64 /* 250 */
  621. .long sys_ni_syscall
  622. .long sys_exit_group
  623. .long sys_lookup_dcookie
  624. .long sys_epoll_create
  625. .long sys_epoll_ctl /* 255 */
  626. .long sys_epoll_wait
  627. .long sys_remap_file_pages
  628. .long sys_set_tid_address
  629. .long sys_timer_create
  630. .long sys_timer_settime /* 260 */
  631. .long sys_timer_gettime
  632. .long sys_timer_getoverrun
  633. .long sys_timer_delete
  634. .long sys_clock_settime
  635. .long sys_clock_gettime /* 265 */
  636. .long sys_clock_getres
  637. .long sys_clock_nanosleep
  638. .long sys_statfs64
  639. .long sys_fstatfs64
  640. .long sys_tgkill /* 270 */
  641. .long sys_utimes
  642. .long sys_fadvise64_64
  643. .long sys_ni_syscall /* sys_vserver */
  644. .long sys_mbind
  645. .long sys_get_mempolicy /* 275 */
  646. .long sys_set_mempolicy
  647. .long sys_mq_open
  648. .long sys_mq_unlink
  649. .long sys_mq_timedsend
  650. .long sys_mq_timedreceive /* 280 */
  651. .long sys_mq_notify
  652. .long sys_mq_getsetattr
  653. .long sys_kexec_load
  654. .long sys_waitid
  655. .long sys_ni_syscall /* 285 */ /* available */
  656. .long sys_add_key
  657. .long sys_request_key
  658. .long sys_keyctl
  659. .long sys_cacheflush
  660. .long sys_ioprio_set /* 290 */
  661. .long sys_ioprio_get
  662. .long sys_inotify_init
  663. .long sys_inotify_add_watch
  664. .long sys_inotify_rm_watch
  665. .long sys_migrate_pages /* 295 */
  666. .long sys_openat
  667. .long sys_mkdirat
  668. .long sys_mknodat
  669. .long sys_fchownat
  670. .long sys_futimesat /* 300 */
  671. .long sys_fstatat64
  672. .long sys_unlinkat
  673. .long sys_renameat
  674. .long sys_linkat
  675. .long sys_symlinkat /* 305 */
  676. .long sys_readlinkat
  677. .long sys_fchmodat
  678. .long sys_faccessat
  679. .long sys_pselect6
  680. .long sys_ppoll /* 310 */
  681. .long sys_unshare
  682. .long sys_set_robust_list
  683. .long sys_get_robust_list
  684. .long sys_splice
  685. .long sys_sync_file_range /* 315 */
  686. .long sys_tee
  687. .long sys_vmsplice
  688. .long sys_move_pages
  689. .long sys_getcpu
  690. .long sys_epoll_pwait /* 320 */
  691. .long sys_utimensat
  692. .long sys_signalfd
  693. .long sys_timerfd_create
  694. .long sys_eventfd
  695. .long sys_fallocate /* 325 */
  696. .long sys_timerfd_settime
  697. .long sys_timerfd_gettime
  698. .long sys_signalfd4
  699. .long sys_eventfd2
  700. .long sys_epoll_create1 /* 330 */
  701. .long sys_dup3
  702. .long sys_pipe2
  703. .long sys_inotify_init1
  704. .long sys_preadv
  705. .long sys_pwritev /* 335 */
  706. .long sys_rt_tgsigqueueinfo
  707. .long sys_perf_event_open
  708. .long sys_recvmmsg
  709. .long sys_setns
  710. nr_syscalls=(.-sys_call_table)/4