Path: blob/master/arch/cris/arch-v32/kernel/entry.S
15125 views
/*1* Copyright (C) 2000-2003 Axis Communications AB2*3* Authors: Bjorn Wesen ([email protected])4* Tobias Anderberg ([email protected]), CRISv32 port.5*6* Code for the system-call and fault low-level handling routines.7*8* NOTE: This code handles signal-recognition, which happens every time9* after a timer-interrupt and after each system call.10*11* Stack layout in 'ret_from_system_call':12* ptrace needs to have all regs on the stack.13* if the order here is changed, it needs to be14* updated in fork.c:copy_process, signal.c:do_signal,15* ptrace.c and ptrace.h16*17*/1819#include <linux/linkage.h>20#include <linux/sys.h>21#include <asm/unistd.h>22#include <asm/errno.h>23#include <asm/thread_info.h>24#include <asm/asm-offsets.h>2526#include <hwregs/asm/reg_map_asm.h>27#include <hwregs/asm/intr_vect_defs_asm.h>2829;; Exported functions.30.globl system_call31.globl ret_from_intr32.globl ret_from_fork33.globl resume34.globl multiple_interrupt35.globl nmi_interrupt36.globl spurious_interrupt37.globl do_sigtrap38.globl gdb_handle_exception39.globl sys_call_table4041; Check if preemptive kernel scheduling should be done.42#ifdef CONFIG_PREEMPT43_resume_kernel:44di45; Load current task struct.46movs.w -8192, $r0 ; THREAD_SIZE = 819247and.d $sp, $r04849addoq +TI_preempt_count, $r0, $acr50move.d [$acr], $r10 ; Preemption disabled?51bne _Rexit52nop5354_need_resched:55addoq +TI_flags, $r0, $acr56move.d [$acr], $r1057btstq TIF_NEED_RESCHED, $r10 ; Check if need_resched is set.58bpl _Rexit59nop6061; Do preemptive kernel scheduling.62jsr preempt_schedule_irq63nop6465; Load new task struct.66movs.w -8192, $r0 ; THREAD_SIZE = 8192.67and.d $sp, $r06869; One more time with new task.70ba _need_resched71nop72#else73#define _resume_kernel _Rexit74#endif7576; Called at exit from fork. schedule_tail must be called to drop77; spinlock if CONFIG_PREEMPT.78.type ret_from_fork,@function79ret_from_fork:80jsr schedule_tail81nop82ba ret_from_sys_call83nop84.size ret_from_fork, . - ret_from_fork8586.type ret_from_intr,@function87ret_from_intr:88;; Check for resched if preemptive kernel, or if we're going back to89;; user-mode. This test matches the user_regs(regs) macro. Don't simply90;; test CCS since that doesn't necessarily reflect what mode we'll91;; return into.92addoq +PT_ccs, $sp, $acr93move.d [$acr], $r094btstq 16, $r0 ; User-mode flag.95bpl _resume_kernel96.size ret_from_intr, . - ret_from_intr + 2 ; +2 includes the dslot.9798; Note that di below is in delay slot.99.type _resume_userspace,@function100_resume_userspace:101di ; So need_resched and sigpending don't change.102103movs.w -8192, $r0 ; THREAD_SIZE == 8192104and.d $sp, $r0105106addoq +TI_flags, $r0, $acr ; current->work107move.d [$acr], $r10108and.d _TIF_WORK_MASK, $r10 ; Work to be done on return?109bne _work_pending110nop111ba _Rexit112nop113.size _resume_userspace, . - _resume_userspace114115;; The system_call is called by a BREAK instruction, which looks pretty116;; much like any other exception.117;;118;; System calls can't be made from interrupts but we still stack ERP119;; to have a complete stack frame.120;;121;; In r9 we have the wanted syscall number. Arguments come in r10,r11,r12,122;; r13,mof,srp123;;124;; This function looks on the _surface_ like spaghetti programming, but it's125;; really designed so that the fast-path does not force cache-loading of126;; non-used instructions. Only the non-common cases cause the outlined code127;; to run..128129.type system_call,@function130system_call:131;; Stack-frame similar to the irq heads, which is reversed in132;; ret_from_sys_call.133134sub.d 92, $sp ; Skip EXS and EDA.135movem $r13, [$sp]136move.d $sp, $r8137addq 14*4, $r8138move.d $acr, $r0139move $srs, $r1140move $mof, $r2141move $spc, $r3142move $ccs, $r4143move $srp, $r5144move $erp, $r6145subq 4, $sp146movem $r6, [$r8]147ei ; Enable interrupts while processing syscalls.148move.d $r10, [$sp]149150; Set S-bit when kernel debugging to keep hardware breakpoints active.151#ifdef CONFIG_ETRAX_KGDB152move $ccs, $r0153or.d (1<<9), $r0154move $r0, $ccs155#endif156157movs.w -ENOSYS, $r0158addoq +PT_r10, $sp, $acr159move.d $r0, [$acr]160161;; Check if this process is syscall-traced.162movs.w -8192, $r0 ; THREAD_SIZE == 8192163and.d $sp, $r0164165addoq +TI_flags, $r0, $acr166move.d [$acr], $r0167btstq TIF_SYSCALL_TRACE, $r0168bmi _syscall_trace_entry169nop170171_syscall_traced:172;; Check for sanity in the requested syscall number.173cmpu.w NR_syscalls, $r9174bhs ret_from_sys_call175lslq 2, $r9 ; Multiply by 4, in the delay slot.176177;; The location on the stack for the register structure is passed as a178;; seventh argument. Some system calls need this.179move.d $sp, $r0180subq 4, $sp181move.d $r0, [$sp]182183;; The registers carrying parameters (R10-R13) are intact. The optional184;; fifth and sixth parameters is in MOF and SRP respectively. Put them185;; back on the stack.186subq 4, $sp187move $srp, [$sp]188subq 4, $sp189move $mof, [$sp]190191;; Actually to the system call.192addo.d +sys_call_table, $r9, $acr193move.d [$acr], $acr194jsr $acr195nop196197addq 3*4, $sp ; Pop the mof, srp and regs parameters.198addoq +PT_r10, $sp, $acr199move.d $r10, [$acr] ; Save the return value.200201moveq 1, $r9 ; "Parameter" to ret_from_sys_call to202; show it was a sys call.203204;; Fall through into ret_from_sys_call to return.205206ret_from_sys_call:207;; R9 is a parameter:208;; >= 1 from syscall209;; 0 from irq210211;; Get the current task-struct pointer.212movs.w -8192, $r0 ; THREAD_SIZE == 8192213and.d $sp, $r0214215di ; Make sure need_resched and sigpending don't change.216217addoq +TI_flags, $r0, $acr218move.d [$acr], $r1219and.d _TIF_ALLWORK_MASK, $r1220bne _syscall_exit_work221nop222.size system_call, . - system_call223224.type _Rexit,@function225_Rexit:226;; This epilogue MUST match the prologues in multiple_interrupt, irq.h227;; and ptregs.h.228addq 4, $sp ; Skip orig_r10.229movem [$sp+], $r13 ; Registers R0-R13.230move.d [$sp+], $acr231move [$sp], $srs232addq 4, $sp233move [$sp+], $mof234move [$sp+], $spc235move [$sp+], $ccs236move [$sp+], $srp237move [$sp+], $erp238addq 8, $sp ; Skip EXS, EDA.239jump $erp240rfe ; Restore condition code stack in delay-slot.241.size _Rexit, . - _Rexit242243;; We get here after doing a syscall if extra work might need to be done244;; perform syscall exit tracing if needed.245246.type _syscall_exit_work,@function247_syscall_exit_work:248;; R0 contains current at this point and irq's are disabled.249250addoq +TI_flags, $r0, $acr251move.d [$acr], $r1252btstq TIF_SYSCALL_TRACE, $r1253bpl _work_pending254nop255ei256move.d $r9, $r1 ; Preserve R9.257jsr do_syscall_trace258nop259move.d $r1, $r9260ba _resume_userspace261nop262.size _syscall_exit_work, . - _syscall_exit_work263264.type _work_pending,@function265_work_pending:266addoq +TI_flags, $r0, $acr267move.d [$acr], $r10268btstq TIF_NEED_RESCHED, $r10 ; Need resched?269bpl _work_notifysig ; No, must be signal/notify.270nop271.size _work_pending, . - _work_pending272273.type _work_resched,@function274_work_resched:275move.d $r9, $r1 ; Preserve R9.276jsr schedule277nop278move.d $r1, $r9279di280281addoq +TI_flags, $r0, $acr282move.d [$acr], $r1283and.d _TIF_WORK_MASK, $r1 ; Ignore sycall trace counter.284beq _Rexit285nop286btstq TIF_NEED_RESCHED, $r1287bmi _work_resched ; current->work.need_resched.288nop289.size _work_resched, . - _work_resched290291.type _work_notifysig,@function292_work_notifysig:293;; Deal with pending signals and notify-resume requests.294295addoq +TI_flags, $r0, $acr296move.d [$acr], $r12 ; The thread_info_flags parameter.297move.d $sp, $r11 ; The regs param.298jsr do_notify_resume299move.d $r9, $r10 ; do_notify_resume syscall/irq param.300301ba _Rexit302nop303.size _work_notifysig, . - _work_notifysig304305;; We get here as a sidetrack when we've entered a syscall with the306;; trace-bit set. We need to call do_syscall_trace and then continue307;; with the call.308309_syscall_trace_entry:310;; PT_r10 in the frame contains -ENOSYS as required, at this point.311312jsr do_syscall_trace313nop314315;; Now re-enter the syscall code to do the syscall itself. We need to316;; restore R9 here to contain the wanted syscall, and the other317;; parameter-bearing registers.318addoq +PT_r9, $sp, $acr319move.d [$acr], $r9320addoq +PT_orig_r10, $sp, $acr321move.d [$acr], $r10 ; PT_r10 is already -ENOSYS.322addoq +PT_r11, $sp, $acr323move.d [$acr], $r11324addoq +PT_r12, $sp, $acr325move.d [$acr], $r12326addoq +PT_r13, $sp, $acr327move.d [$acr], $r13328addoq +PT_mof, $sp, $acr329move [$acr], $mof330addoq +PT_srp, $sp, $acr331move [$acr], $srp332333ba _syscall_traced334nop335336;; Resume performs the actual task-switching, by switching stack337;; pointers. Input arguments are:338;;339;; R10 = prev340;; R11 = next341;; R12 = thread offset in task struct.342;;343;; Returns old current in R10.344345.type resume,@function346resume:347subq 4, $sp ; Make space for srp.348349add.d $r12, $r10 ; R10 = current tasks tss.350addoq +THREAD_ccs, $r10, $acr351move $srp, [$sp] ; Keep old/new PC on the stack.352move $ccs, [$acr] ; Save IRQ enable state.353di354355addoq +THREAD_usp, $r10, $acr356subq 10*4, $sp ; Make room for R9.357move $usp, [$acr] ; Save user-mode stackpointer.358359;; See copy_thread for the reason why register R9 is saved.360movem $r9, [$sp] ; Save non-scratch registers and R9.361362addoq +THREAD_ksp, $r10, $acr363move.d $sp, $r10 ; Return last running task in R10.364move.d $sp, [$acr] ; Save kernel SP for old task.365366and.d -8192, $r10 ; Get thread_info from stackpointer.367addoq +TI_task, $r10, $acr368add.d $r12, $r11 ; Find the new tasks tss.369move.d [$acr], $r10 ; Get task.370addoq +THREAD_ksp, $r11, $acr371move.d [$acr], $sp ; Switch to new stackframe.372addoq +THREAD_usp, $r11, $acr373movem [$sp+], $r9 ; Restore non-scratch registers and R9.374375move [$acr], $usp ; Restore user-mode stackpointer.376377addoq +THREAD_ccs, $r11, $acr378move.d [$sp+], $r11379jump $r11 ; Restore PC.380move [$acr], $ccs ; Restore IRQ enable status.381.size resume, . - resume382383nmi_interrupt:384385;; If we receive a watchdog interrupt while it is not expected, then set386;; up a canonical frame and dump register contents before dying.387388;; This prologue MUST match the one in irq.h and the struct in ptregs.h!389subq 12, $sp ; Skip EXS, EDA.390move $nrp, [$sp]391subq 4, $sp392move $srp, [$sp]393subq 4, $sp394move $ccs, [$sp]395subq 4, $sp396move $spc, [$sp]397subq 4, $sp398move $mof, [$sp]399subq 4, $sp400move $srs, [$sp]401subq 4, $sp402move.d $acr, [$sp]403subq 14*4, $sp ; Make room for R0-R13.404movem $r13, [$sp] ; Push R0-R13.405subq 4, $sp406move.d $r10, [$sp] ; Push orig_r10.407move.d REG_ADDR(intr_vect, regi_irq, r_nmi), $r0408move.d [$r0], $r0409btstq REG_BIT(intr_vect, r_nmi, watchdog), $r0410bpl 1f411nop412jsr handle_watchdog_bite ; In time.c.413move.d $sp, $r10 ; Pointer to registers4141: btstq REG_BIT(intr_vect, r_nmi, ext), $r0415bpl 1f416nop417jsr handle_nmi418move.d $sp, $r10 ; Pointer to registers4191: addq 4, $sp ; Skip orig_r10420movem [$sp+], $r13421move.d [$sp+], $acr422move [$sp], $srs423addq 4, $sp424move [$sp+], $mof425move [$sp+], $spc426move [$sp+], $ccs427move [$sp+], $srp428move [$sp+], $nrp429addq 8, $sp ; Skip EXS, EDA.430jump $nrp431rfn432433.comm cause_of_death, 4 ;; Don't declare this anywhere.434435spurious_interrupt:436di437jump hard_reset_now438nop439440;; This handles the case when multiple interrupts arrive at the same441;; time. Jump to the first set interrupt bit in a priotiry fashion. The442;; hardware will call the unserved interrupts after the handler443;; finishes.444.type multiple_interrupt, @function445multiple_interrupt:446;; This prologue MUST match the one in irq.h and the struct in ptregs.h!447subq 12, $sp ; Skip EXS, EDA.448move $erp, [$sp]449subq 4, $sp450move $srp, [$sp]451subq 4, $sp452move $ccs, [$sp]453subq 4, $sp454move $spc, [$sp]455subq 4, $sp456move $mof, [$sp]457subq 4, $sp458move $srs, [$sp]459subq 4, $sp460move.d $acr, [$sp]461subq 14*4, $sp ; Make room for R0-R13.462movem $r13, [$sp] ; Push R0-R13.463subq 4, $sp464move.d $r10, [$sp] ; Push orig_r10.465466; Set S-bit when kernel debugging to keep hardware breakpoints active.467#ifdef CONFIG_ETRAX_KGDB468move $ccs, $r0469or.d (1<<9), $r0470move $r0, $ccs471#endif472473jsr crisv32_do_multiple474move.d $sp, $r10475jump ret_from_intr476nop477.size multiple_interrupt, . - multiple_interrupt478479do_sigtrap:480;; Sigtraps the process that executed the BREAK instruction. Creates a481;; frame that Rexit expects.482subq 4, $sp483move $eda, [$sp]484subq 4, $sp485move $exs, [$sp]486subq 4, $sp487move $erp, [$sp]488subq 4, $sp489move $srp, [$sp]490subq 4, $sp491move $ccs, [$sp]492subq 4, $sp493move $spc, [$sp]494subq 4, $sp495move $mof, [$sp]496subq 4, $sp497move $srs, [$sp]498subq 4, $sp499move.d $acr, [$sp]500di ; Need to disable irq's at this point.501subq 14*4, $sp ; Make room for r0-r13.502movem $r13, [$sp] ; Push the r0-r13 registers.503subq 4, $sp504move.d $r10, [$sp] ; Push orig_r10.505506movs.w -8192, $r9 ; THREAD_SIZE == 8192507and.d $sp, $r9508509;; thread_info as first parameter510move.d $r9, $r10511moveq 5, $r11 ; SIGTRAP as second argument.512jsr ugdb_trap_user513nop514jump ret_from_intr ; Use the return routine for interrupts.515nop516517gdb_handle_exception:518subq 4, $sp519move.d $r0, [$sp]520#ifdef CONFIG_ETRAX_KGDB521move $ccs, $r0 ; U-flag not affected by previous insns.522btstq 16, $r0 ; Test the U-flag.523bmi _ugdb_handle_exception ; Go to user mode debugging.524nop ; Empty delay-slot (cannot pop R0 here).525ba kgdb_handle_exception ; Go to kernel debugging.526move.d [$sp+], $r0 ; Restore R0 in delay slot.527#endif528529_ugdb_handle_exception:530ba do_sigtrap ; SIGTRAP the offending process.531move.d [$sp+], $r0 ; Restore R0 in delay slot.532533.global kernel_execve534.type kernel_execve,@function535kernel_execve:536move.d __NR_execve, $r9537break 13538ret539nop540.size kernel_execve, . - kernel_execve541542.data543544.section .rodata,"a"545sys_call_table:546.long sys_restart_syscall ; 0 - old "setup()" system call, used547; for restarting.548.long sys_exit549.long sys_fork550.long sys_read551.long sys_write552.long sys_open /* 5 */553.long sys_close554.long sys_waitpid555.long sys_creat556.long sys_link557.long sys_unlink /* 10 */558.long sys_execve559.long sys_chdir560.long sys_time561.long sys_mknod562.long sys_chmod /* 15 */563.long sys_lchown16564.long sys_ni_syscall /* old break syscall holder */565.long sys_stat566.long sys_lseek567.long sys_getpid /* 20 */568.long sys_mount569.long sys_oldumount570.long sys_setuid16571.long sys_getuid16572.long sys_stime /* 25 */573.long sys_ptrace574.long sys_alarm575.long sys_fstat576.long sys_pause577.long sys_utime /* 30 */578.long sys_ni_syscall /* old stty syscall holder */579.long sys_ni_syscall /* old gtty syscall holder */580.long sys_access581.long sys_nice582.long sys_ni_syscall /* 35 old ftime syscall holder */583.long sys_sync584.long sys_kill585.long sys_rename586.long sys_mkdir587.long sys_rmdir /* 40 */588.long sys_dup589.long sys_pipe590.long sys_times591.long sys_ni_syscall /* old prof syscall holder */592.long sys_brk /* 45 */593.long sys_setgid16594.long sys_getgid16595.long sys_signal596.long sys_geteuid16597.long sys_getegid16 /* 50 */598.long sys_acct599.long sys_umount /* recycled never used phys( */600.long sys_ni_syscall /* old lock syscall holder */601.long sys_ioctl602.long sys_fcntl /* 55 */603.long sys_ni_syscall /* old mpx syscall holder */604.long sys_setpgid605.long sys_ni_syscall /* old ulimit syscall holder */606.long sys_ni_syscall /* old sys_olduname holder */607.long sys_umask /* 60 */608.long sys_chroot609.long sys_ustat610.long sys_dup2611.long sys_getppid612.long sys_getpgrp /* 65 */613.long sys_setsid614.long sys_sigaction615.long sys_sgetmask616.long sys_ssetmask617.long sys_setreuid16 /* 70 */618.long sys_setregid16619.long sys_sigsuspend620.long sys_sigpending621.long sys_sethostname622.long sys_setrlimit /* 75 */623.long sys_old_getrlimit624.long sys_getrusage625.long sys_gettimeofday626.long sys_settimeofday627.long sys_getgroups16 /* 80 */628.long sys_setgroups16629.long sys_select /* was old_select in Linux/E100 */630.long sys_symlink631.long sys_lstat632.long sys_readlink /* 85 */633.long sys_uselib634.long sys_swapon635.long sys_reboot636.long sys_old_readdir637.long sys_old_mmap /* 90 */638.long sys_munmap639.long sys_truncate640.long sys_ftruncate641.long sys_fchmod642.long sys_fchown16 /* 95 */643.long sys_getpriority644.long sys_setpriority645.long sys_ni_syscall /* old profil syscall holder */646.long sys_statfs647.long sys_fstatfs /* 100 */648.long sys_ni_syscall /* sys_ioperm in i386 */649.long sys_socketcall650.long sys_syslog651.long sys_setitimer652.long sys_getitimer /* 105 */653.long sys_newstat654.long sys_newlstat655.long sys_newfstat656.long sys_ni_syscall /* old sys_uname holder */657.long sys_ni_syscall /* sys_iopl in i386 */658.long sys_vhangup659.long sys_ni_syscall /* old "idle" system call */660.long sys_ni_syscall /* vm86old in i386 */661.long sys_wait4662.long sys_swapoff /* 115 */663.long sys_sysinfo664.long sys_ipc665.long sys_fsync666.long sys_sigreturn667.long sys_clone /* 120 */668.long sys_setdomainname669.long sys_newuname670.long sys_ni_syscall /* sys_modify_ldt */671.long sys_adjtimex672.long sys_mprotect /* 125 */673.long sys_sigprocmask674.long sys_ni_syscall /* old "create_module" */675.long sys_init_module676.long sys_delete_module677.long sys_ni_syscall /* 130: old "get_kernel_syms" */678.long sys_quotactl679.long sys_getpgid680.long sys_fchdir681.long sys_bdflush682.long sys_sysfs /* 135 */683.long sys_personality684.long sys_ni_syscall /* for afs_syscall */685.long sys_setfsuid16686.long sys_setfsgid16687.long sys_llseek /* 140 */688.long sys_getdents689.long sys_select690.long sys_flock691.long sys_msync692.long sys_readv /* 145 */693.long sys_writev694.long sys_getsid695.long sys_fdatasync696.long sys_sysctl697.long sys_mlock /* 150 */698.long sys_munlock699.long sys_mlockall700.long sys_munlockall701.long sys_sched_setparam702.long sys_sched_getparam /* 155 */703.long sys_sched_setscheduler704.long sys_sched_getscheduler705.long sys_sched_yield706.long sys_sched_get_priority_max707.long sys_sched_get_priority_min /* 160 */708.long sys_sched_rr_get_interval709.long sys_nanosleep710.long sys_mremap711.long sys_setresuid16712.long sys_getresuid16 /* 165 */713.long sys_ni_syscall /* sys_vm86 */714.long sys_ni_syscall /* Old sys_query_module */715.long sys_poll716.long sys_nfsservctl717.long sys_setresgid16 /* 170 */718.long sys_getresgid16719.long sys_prctl720.long sys_rt_sigreturn721.long sys_rt_sigaction722.long sys_rt_sigprocmask /* 175 */723.long sys_rt_sigpending724.long sys_rt_sigtimedwait725.long sys_rt_sigqueueinfo726.long sys_rt_sigsuspend727.long sys_pread64 /* 180 */728.long sys_pwrite64729.long sys_chown16730.long sys_getcwd731.long sys_capget732.long sys_capset /* 185 */733.long sys_sigaltstack734.long sys_sendfile735.long sys_ni_syscall /* streams1 */736.long sys_ni_syscall /* streams2 */737.long sys_vfork /* 190 */738.long sys_getrlimit739.long sys_mmap2740.long sys_truncate64741.long sys_ftruncate64742.long sys_stat64 /* 195 */743.long sys_lstat64744.long sys_fstat64745.long sys_lchown746.long sys_getuid747.long sys_getgid /* 200 */748.long sys_geteuid749.long sys_getegid750.long sys_setreuid751.long sys_setregid752.long sys_getgroups /* 205 */753.long sys_setgroups754.long sys_fchown755.long sys_setresuid756.long sys_getresuid757.long sys_setresgid /* 210 */758.long sys_getresgid759.long sys_chown760.long sys_setuid761.long sys_setgid762.long sys_setfsuid /* 215 */763.long sys_setfsgid764.long sys_pivot_root765.long sys_mincore766.long sys_madvise767.long sys_getdents64 /* 220 */768.long sys_fcntl64769.long sys_ni_syscall /* reserved for TUX */770.long sys_ni_syscall771.long sys_gettid772.long sys_readahead /* 225 */773.long sys_setxattr774.long sys_lsetxattr775.long sys_fsetxattr776.long sys_getxattr777.long sys_lgetxattr /* 230 */778.long sys_fgetxattr779.long sys_listxattr780.long sys_llistxattr781.long sys_flistxattr782.long sys_removexattr /* 235 */783.long sys_lremovexattr784.long sys_fremovexattr785.long sys_tkill786.long sys_sendfile64787.long sys_futex /* 240 */788.long sys_sched_setaffinity789.long sys_sched_getaffinity790.long sys_ni_syscall /* sys_set_thread_area */791.long sys_ni_syscall /* sys_get_thread_area */792.long sys_io_setup /* 245 */793.long sys_io_destroy794.long sys_io_getevents795.long sys_io_submit796.long sys_io_cancel797.long sys_fadvise64 /* 250 */798.long sys_ni_syscall799.long sys_exit_group800.long sys_lookup_dcookie801.long sys_epoll_create802.long sys_epoll_ctl /* 255 */803.long sys_epoll_wait804.long sys_remap_file_pages805.long sys_set_tid_address806.long sys_timer_create807.long sys_timer_settime /* 260 */808.long sys_timer_gettime809.long sys_timer_getoverrun810.long sys_timer_delete811.long sys_clock_settime812.long sys_clock_gettime /* 265 */813.long sys_clock_getres814.long sys_clock_nanosleep815.long sys_statfs64816.long sys_fstatfs64817.long sys_tgkill /* 270 */818.long sys_utimes819.long sys_fadvise64_64820.long sys_ni_syscall /* sys_vserver */821.long sys_ni_syscall /* sys_mbind */822.long sys_ni_syscall /* 275 sys_get_mempolicy */823.long sys_ni_syscall /* sys_set_mempolicy */824.long sys_mq_open825.long sys_mq_unlink826.long sys_mq_timedsend827.long sys_mq_timedreceive /* 280 */828.long sys_mq_notify829.long sys_mq_getsetattr830.long sys_ni_syscall /* reserved for kexec */831.long sys_waitid832.long sys_ni_syscall /* 285 */ /* available */833.long sys_add_key834.long sys_request_key835.long sys_keyctl836.long sys_ioprio_set837.long sys_ioprio_get /* 290 */838.long sys_inotify_init839.long sys_inotify_add_watch840.long sys_inotify_rm_watch841.long sys_migrate_pages842.long sys_openat /* 295 */843.long sys_mkdirat844.long sys_mknodat845.long sys_fchownat846.long sys_futimesat847.long sys_fstatat64 /* 300 */848.long sys_unlinkat849.long sys_renameat850.long sys_linkat851.long sys_symlinkat852.long sys_readlinkat /* 305 */853.long sys_fchmodat854.long sys_faccessat855.long sys_pselect6856.long sys_ppoll857.long sys_unshare /* 310 */858.long sys_set_robust_list859.long sys_get_robust_list860.long sys_splice861.long sys_sync_file_range862.long sys_tee /* 315 */863.long sys_vmsplice864.long sys_move_pages865.long sys_getcpu866.long sys_epoll_pwait867.long sys_utimensat /* 320 */868.long sys_signalfd869.long sys_timerfd_create870.long sys_eventfd871.long sys_fallocate872.long sys_timerfd_settime /* 325 */873.long sys_timerfd_gettime874.long sys_signalfd4875.long sys_eventfd2876.long sys_epoll_create1877.long sys_dup3 /* 330 */878.long sys_pipe2879.long sys_inotify_init1880.long sys_preadv881.long sys_pwritev882.long sys_setns /* 335 */883884/*885* NOTE!! This doesn't have to be exact - we just have886* to make sure we have _enough_ of the "sys_ni_syscall"887* entries. Don't panic if you notice that this hasn't888* been shrunk every time we add a new system call.889*/890891.rept NR_syscalls - (.-sys_call_table) / 4892.long sys_ni_syscall893.endr894895896897