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