entry.S 19 KB

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