2 * linux/arch/m32r/kernel/entry.S
4 * Copyright (c) 2001, 2002 Hirokazu Takata, Hitoshi Yamamoto, H. Kondo
5 * Copyright (c) 2003 Hitoshi Yamamoto
6 * Copyright (c) 2004 Hirokazu Takata <takata at linux-m32r.org>
8 * Taken from i386 version.
9 * Copyright (C) 1991, 1992 Linus Torvalds
13 * entry.S contains the system-call and fault low-level handling routines.
14 * This also contains the timer-interrupt handler, as well as all interrupts
15 * and faults that can result in a task-switch.
17 * NOTE: This code handles signal-recognition, which happens every time
18 * after a timer-interrupt and after each system call.
20 * Stack layout in 'ret_from_system_call':
21 * ptrace needs to have all regs on the stack.
22 * if the order here is changed, it needs to be
23 * updated in fork.c:copy_thread, signal.c:do_signal,
24 * ptrace.c and ptrace.h
30 * @(0x0c,sp) - *pt_regs
41 * @(0x38,sp) - syscall_nr
44 * @(0x44,sp) - acc1h ; ISA_DSP_LEVEL2 only
45 * @(0x48,sp) - acc1l ; ISA_DSP_LEVEL2 only
50 * @(0x5c,sp) - spu (cr3)
51 * @(0x60,sp) - fp (r13)
52 * @(0x64,sp) - lr (r14)
53 * @(0x68,sp) - spi (cr2)
54 * @(0x6c,sp) - orig_r0
57 #include <linux/linkage.h>
59 #include <asm/unistd.h>
60 #include <asm/assembler.h>
61 #include <asm/thread_info.h>
62 #include <asm/errno.h>
63 #include <asm/segment.h>
67 #include <asm/mmu_context.h>
69 #if !defined(CONFIG_MMU)
70 #define sys_madvise sys_ni_syscall
71 #define sys_readahead sys_ni_syscall
72 #define sys_mprotect sys_ni_syscall
73 #define sys_msync sys_ni_syscall
74 #define sys_mlock sys_ni_syscall
75 #define sys_munlock sys_ni_syscall
76 #define sys_mlockall sys_ni_syscall
77 #define sys_munlockall sys_ni_syscall
78 #define sys_mremap sys_ni_syscall
79 #define sys_mincore sys_ni_syscall
80 #define sys_remap_file_pages sys_ni_syscall
81 #endif /* CONFIG_MMU */
84 #define R5(reg) @(0x04,reg)
85 #define R6(reg) @(0x08,reg)
86 #define PTREGS(reg) @(0x0C,reg)
87 #define R0(reg) @(0x10,reg)
88 #define R1(reg) @(0x14,reg)
89 #define R2(reg) @(0x18,reg)
90 #define R3(reg) @(0x1C,reg)
91 #define R7(reg) @(0x20,reg)
92 #define R8(reg) @(0x24,reg)
93 #define R9(reg) @(0x28,reg)
94 #define R10(reg) @(0x2C,reg)
95 #define R11(reg) @(0x30,reg)
96 #define R12(reg) @(0x34,reg)
97 #define SYSCALL_NR(reg) @(0x38,reg)
98 #define ACC0H(reg) @(0x3C,reg)
99 #define ACC0L(reg) @(0x40,reg)
100 #define ACC1H(reg) @(0x44,reg)
101 #define ACC1L(reg) @(0x48,reg)
102 #define PSW(reg) @(0x4C,reg)
103 #define BPC(reg) @(0x50,reg)
104 #define BBPSW(reg) @(0x54,reg)
105 #define BBPC(reg) @(0x58,reg)
106 #define SPU(reg) @(0x5C,reg)
107 #define FP(reg) @(0x60,reg) /* FP = R13 */
108 #define LR(reg) @(0x64,reg)
109 #define SP(reg) @(0x68,reg)
110 #define ORIG_R0(reg) @(0x6C,reg)
119 #ifdef CONFIG_PREEMPT
120 #define preempt_stop(x) CLI(x)
122 #define preempt_stop(x)
123 #define resume_kernel restore_all
133 * Return to user mode is not as complex as all this looks,
134 * but we want the default path for a system call return to
135 * go as quickly as possible which is why some of this is
136 * less clear than it otherwise should be.
139 ; userspace resumption stub bypassing syscall exit tracing
145 #ifdef CONFIG_ISA_M32R2
146 and3 r4, r4, #0x8800 ; check BSM and BPM bits
148 and3 r4, r4, #0x8000 ; check BSM bit
150 beqz r4, resume_kernel
151 ENTRY(resume_userspace)
152 CLI(r4) ; make sure we don't miss an interrupt
153 ; setting need_resched or sigpending
154 ; between sampling and the iret
156 ld r9, @(TI_FLAGS, r8)
157 and3 r4, r9, #_TIF_WORK_MASK ; is there any work to be done on
158 ; int/exception return?
159 bnez r4, work_pending
162 #ifdef CONFIG_PREEMPT
165 ld r9, @(TI_PRE_COUNT, r8) ; non-zero preempt_count ?
168 ld r9, @(TI_FLAGS, r8) ; need_resched set ?
169 and3 r4, r9, #_TIF_NEED_RESCHED
171 ld r4, PSW(sp) ; interrupts off (exception path) ?
174 LDIMM (r4, PREEMPT_ACTIVE)
175 st r4, @(TI_PRE_COUNT, r8)
179 st r4, @(TI_PRE_COUNT, r8)
184 ; system call handler stub
186 SWITCH_TO_KERNEL_STACK
188 STI(r4) ; Enable interrupt
189 st sp, PTREGS(sp) ; implicit pt_regs parameter
190 cmpui r7, #NR_syscalls
192 st r7, SYSCALL_NR(sp) ; syscall_nr
193 ; system call tracing in operation
195 ld r9, @(TI_FLAGS, r8)
196 and3 r4, r9, #_TIF_SYSCALL_TRACE
197 bnez r4, syscall_trace_entry
199 slli r7, #2 ; table jump for the system call
200 LDIMM (r4, sys_call_table)
203 jl r7 ; execute system call
204 st r0, R0(sp) ; save the return value
206 CLI(r4) ; make sure we don't miss an interrupt
207 ; setting need_resched or sigpending
208 ; between sampling and the iret
209 ld r9, @(TI_FLAGS, r8)
210 and3 r4, r9, #_TIF_ALLWORK_MASK ; current->work
211 bnez r4, syscall_exit_work
215 # perform work that needs to be done immediately before resumption
219 and3 r4, r9, #_TIF_NEED_RESCHED
220 beqz r4, work_notifysig
223 CLI(r4) ; make sure we don't miss an interrupt
224 ; setting need_resched or sigpending
225 ; between sampling and the iret
226 ld r9, @(TI_FLAGS, r8)
227 and3 r4, r9, #_TIF_WORK_MASK ; is there any work to be done other
228 ; than syscall tracing?
230 and3 r4, r4, #_TIF_NEED_RESCHED
231 bnez r4, work_resched
233 work_notifysig: ; deal with pending signals and
234 ; notify-resume requests
235 mv r0, sp ; arg1 : struct pt_regs *regs
236 ldi r1, #0 ; arg2 : sigset_t *oldset
237 mv r2, r9 ; arg3 : __u32 thread_info_flags
241 ; perform syscall exit tracing
254 ld r7, SYSCALL_NR(sp)
255 cmpui r7, #NR_syscalls
259 ; perform syscall exit tracing
262 ld r9, @(TI_FLAGS, r8)
263 and3 r4, r9, #_TIF_SYSCALL_TRACE
264 beqz r4, work_pending
265 STI(r4) ; could let do_syscall_trace() call
286 .equ ei_vec_table, eit_vector + 0x0200
292 #if defined(CONFIG_CHIP_M32700)
293 SWITCH_TO_KERNEL_STACK
294 ; WORKAROUND: force to clear SM bit and use the kernel stack (SPI).
297 mv r1, sp ; arg1(regs)
298 #if defined(CONFIG_CHIP_VDEC2) || defined(CONFIG_CHIP_XNUX2) \
299 || defined(CONFIG_CHIP_M32700) || defined(CONFIG_CHIP_M32102) \
300 || defined(CONFIG_CHIP_OPSP) || defined(CONFIG_CHIP_M32104)
303 seth r0, #shigh(M32R_ICU_ISTS_ADDR)
304 ld r0, @(low(M32R_ICU_ISTS_ADDR),r0)
306 #if defined(CONFIG_SMP)
308 * If IRQ == 0 --> Nothing to do, Not write IMASK
309 * If IRQ == IPI --> Do IPI handler, Not write IMASK
310 * If IRQ != 0, IPI --> Do do_IRQ(), Write IMASK
313 srli r0, #24 ; r0(irq_num<<2)
315 #if defined(CONFIG_CHIP_M32700)
316 /* WORKAROUND: IMASK bug M32700-TS1, TS2 chip. */
317 beqz r0, 3f ; if (!irq_num) goto exit
319 beqz r0, 1f ; if (!irq_num) goto exit
320 #endif /* WORKAROUND */
322 cmpi r0, #(M32R_IRQ_IPI0<<2) ; ISN < IPI0 check
324 cmpi r0, #((M32R_IRQ_IPI7+1)<<2) ; ISN > IPI7 check
326 LDIMM (r2, ei_vec_table)
329 beqz r2, 1f ; if (no IPI handler) goto exit
330 mv r0, r1 ; arg0(regs)
336 #if defined(CONFIG_CHIP_M32700)
337 /* WORKAROUND: IMASK bug M32700-TS1, TS2 chip. */
340 ld24 r14, #0x00070000
341 seth r0, #shigh(M32R_ICU_IMASK_ADDR)
342 st r14, @(low(M32R_ICU_IMASK_ADDR), r0)
345 #endif /* WORKAROUND */
350 #if defined(CONFIG_PLAT_USRV)
351 add3 r2, r0, #-(M32R_IRQ_INT1) ; INT1# interrupt
353 ; read ICU status register of PLD
354 seth r0, #high(PLD_ICUISTS)
355 or3 r0, r0, #low(PLD_ICUISTS)
359 addi r0, #(M32700UT_PLD_IRQ_BASE)
362 #elif defined(CONFIG_PLAT_M32700UT)
363 add3 r2, r0, #-(M32R_IRQ_INT1) ; INT1# interrupt
365 ; read ICU status register of PLD
366 seth r0, #high(PLD_ICUISTS)
367 or3 r0, r0, #low(PLD_ICUISTS)
371 addi r0, #(M32700UT_PLD_IRQ_BASE)
375 add3 r2, r0, #-(M32R_IRQ_INT0) ; INT0# interrupt
377 ; read ICU status of LAN-board
378 seth r0, #high(M32700UT_LAN_ICUISTS)
379 or3 r0, r0, #low(M32700UT_LAN_ICUISTS)
383 add3 r0, r0, #(M32700UT_LAN_PLD_IRQ_BASE)
387 add3 r2, r0, #-(M32R_IRQ_INT2) ; INT2# interrupt
389 ; read ICU status of LCD-board
390 seth r0, #high(M32700UT_LCD_ICUISTS)
391 or3 r0, r0, #low(M32700UT_LCD_ICUISTS)
395 add3 r0, r0, #(M32700UT_LCD_PLD_IRQ_BASE)
399 #elif defined(CONFIG_PLAT_OPSPUT)
400 add3 r2, r0, #-(M32R_IRQ_INT1) ; INT1# interrupt
402 ; read ICU status register of PLD
403 seth r0, #high(PLD_ICUISTS)
404 or3 r0, r0, #low(PLD_ICUISTS)
408 addi r0, #(OPSPUT_PLD_IRQ_BASE)
412 add3 r2, r0, #-(M32R_IRQ_INT0) ; INT0# interrupt
414 ; read ICU status of LAN-board
415 seth r0, #high(OPSPUT_LAN_ICUISTS)
416 or3 r0, r0, #low(OPSPUT_LAN_ICUISTS)
420 add3 r0, r0, #(OPSPUT_LAN_PLD_IRQ_BASE)
424 add3 r2, r0, #-(M32R_IRQ_INT2) ; INT2# interrupt
426 ; read ICU status of LCD-board
427 seth r0, #high(OPSPUT_LCD_ICUISTS)
428 or3 r0, r0, #low(OPSPUT_LCD_ICUISTS)
432 add3 r0, r0, #(OPSPUT_LCD_PLD_IRQ_BASE)
436 #endif /* CONFIG_PLAT_OPSPUT */
437 bl do_IRQ ; r0(irq), r1(regs)
438 #else /* not CONFIG_SMP */
439 srli r0, #22 ; r0(irq)
440 #if defined(CONFIG_PLAT_USRV)
441 add3 r2, r0, #-(M32R_IRQ_INT1) ; INT1# interrupt
443 ; read ICU status register of PLD
444 seth r0, #high(PLD_ICUISTS)
445 or3 r0, r0, #low(PLD_ICUISTS)
449 addi r0, #(M32700UT_PLD_IRQ_BASE)
452 #elif defined(CONFIG_PLAT_M32700UT)
453 add3 r2, r0, #-(M32R_IRQ_INT1) ; INT1# interrupt
455 ; read ICU status register of PLD
456 seth r0, #high(PLD_ICUISTS)
457 or3 r0, r0, #low(PLD_ICUISTS)
461 addi r0, #(M32700UT_PLD_IRQ_BASE)
465 add3 r2, r0, #-(M32R_IRQ_INT0) ; INT0# interrupt
467 ; read ICU status of LAN-board
468 seth r0, #high(M32700UT_LAN_ICUISTS)
469 or3 r0, r0, #low(M32700UT_LAN_ICUISTS)
473 add3 r0, r0, #(M32700UT_LAN_PLD_IRQ_BASE)
477 add3 r2, r0, #-(M32R_IRQ_INT2) ; INT2# interrupt
479 ; read ICU status of LCD-board
480 seth r0, #high(M32700UT_LCD_ICUISTS)
481 or3 r0, r0, #low(M32700UT_LCD_ICUISTS)
485 add3 r0, r0, #(M32700UT_LCD_PLD_IRQ_BASE)
489 #elif defined(CONFIG_PLAT_OPSPUT)
490 add3 r2, r0, #-(M32R_IRQ_INT1) ; INT1# interrupt
492 ; read ICU status register of PLD
493 seth r0, #high(PLD_ICUISTS)
494 or3 r0, r0, #low(PLD_ICUISTS)
498 addi r0, #(OPSPUT_PLD_IRQ_BASE)
502 add3 r2, r0, #-(M32R_IRQ_INT0) ; INT0# interrupt
504 ; read ICU status of LAN-board
505 seth r0, #high(OPSPUT_LAN_ICUISTS)
506 or3 r0, r0, #low(OPSPUT_LAN_ICUISTS)
510 add3 r0, r0, #(OPSPUT_LAN_PLD_IRQ_BASE)
514 add3 r2, r0, #-(M32R_IRQ_INT2) ; INT2# interrupt
516 ; read ICU status of LCD-board
517 seth r0, #high(OPSPUT_LCD_ICUISTS)
518 or3 r0, r0, #low(OPSPUT_LCD_ICUISTS)
522 add3 r0, r0, #(OPSPUT_LCD_PLD_IRQ_BASE)
526 #elif defined(CONFIG_PLAT_M32104UT)
527 add3 r2, r0, #-(M32R_IRQ_INT1) ; INT1# interrupt
529 ; read ICU status register of PLD
530 seth r0, #high(PLD_ICUISTS)
531 or3 r0, r0, #low(PLD_ICUISTS)
535 addi r0, #(M32104UT_PLD_IRQ_BASE)
539 #endif /* CONFIG_PLAT_M32104UT */
541 #endif /* CONFIG_SMP */
543 seth r0, #shigh(M32R_ICU_IMASK_ADDR)
544 st r14, @(low(M32R_ICU_IMASK_ADDR),r0)
546 #error no chip configuration
552 * Default EIT handler
556 .asciz "Unknown interrupt\n"
559 ENTRY(default_eit_handler)
566 LDIMM (r0, __KERNEL_DS)
582 * Access Exception handler
585 SWITCH_TO_KERNEL_STACK
588 seth r2, #shigh(MMU_REG_BASE) /* Check status register */
589 ld r4, @(low(MESTS_offset),r2)
590 st r4, @(low(MESTS_offset),r2)
592 #ifdef CONFIG_CHIP_M32700
593 and3 r1, r1, #0x0000ffff
594 ; WORKAROUND: ignore TME bit for the M32700(TS1).
595 #endif /* CONFIG_CHIP_M32700 */
598 ld r2, @(low(MDEVA_offset),r2) ; set address
605 mvfc r2, bpc ; set address
615 * r0 : struct pt_regs *regs
616 * r1 : unsigned long error-code
617 * r2 : unsigned long address
619 * +------+------+------+------+
620 * | bit3 | bit2 | bit1 | bit0 |
621 * +------+------+------+------+
622 * bit 3 == 0:means data, 1:means instruction
623 * bit 2 == 0:means kernel, 1:means user-mode
624 * bit 1 == 0:means read, 1:means write
625 * bit 0 == 0:means no page found 1:means protection fault
630 #endif /* CONFIG_MMU */
633 ENTRY(alignment_check)
634 /* void alignment_check(int error_code) */
635 SWITCH_TO_KERNEL_STACK
637 ldi r1, #0x30 ; error_code
639 bl do_alignment_check
641 bra ret_from_exception
644 /* void rie_handler(int error_code) */
645 SWITCH_TO_KERNEL_STACK
647 ldi r1, #0x20 ; error_code
653 /* void pie_handler(int error_code) */
654 SWITCH_TO_KERNEL_STACK
656 ldi r1, #0 ; error_code ; FIXME
662 .global withdraw_debug_trap
663 /* void debug_trap(void) */
664 SWITCH_TO_KERNEL_STACK
667 bl withdraw_debug_trap
668 ldi r1, #0 ; error_code
674 /* void ill_trap(void) */
675 SWITCH_TO_KERNEL_STACK
677 ldi r1, #0 ; error_code ; FIXME
683 /* Cache flushing handler */
684 ENTRY(cache_flushing_handler)
685 .global _flush_cache_all
686 /* void _flush_cache_all(void); */
687 SWITCH_TO_KERNEL_STACK
710 ENTRY(sys_call_table)
711 .long sys_restart_syscall /* 0 - old "setup()" system call*/
716 .long sys_open /* 5 */
721 .long sys_unlink /* 10 */
726 .long sys_chmod /* 15 */
727 .long sys_ni_syscall /* lchown16 syscall holder */
728 .long sys_ni_syscall /* old break syscall holder */
729 .long sys_ni_syscall /* old stat syscall holder */
731 .long sys_getpid /* 20 */
734 .long sys_ni_syscall /* setuid16 syscall holder */
735 .long sys_ni_syscall /* getuid16 syscall holder */
736 .long sys_stime /* 25 */
739 .long sys_ni_syscall /* old fstat syscall holder */
741 .long sys_utime /* 30 */
742 .long sys_ni_syscall /* old stty syscall holder */
743 .long sys_cachectl /* for M32R */ /* old gtty syscall holder */
745 .long sys_ni_syscall /* nice syscall holder */
746 .long sys_ni_syscall /* 35 - old ftime syscall holder */
751 .long sys_rmdir /* 40 */
755 .long sys_ni_syscall /* old prof syscall holder */
756 .long sys_brk /* 45 */
757 .long sys_ni_syscall /* setgid16 syscall holder */
758 .long sys_getgid /* will be unused */
759 .long sys_ni_syscall /* signal syscall holder */
760 .long sys_ni_syscall /* geteuid16 syscall holder */
761 .long sys_ni_syscall /* 50 - getegid16 syscall holder */
763 .long sys_umount /* recycled never used phys() */
764 .long sys_ni_syscall /* old lock syscall holder */
766 .long sys_fcntl /* 55 - will be unused */
767 .long sys_ni_syscall /* mpx syscall holder */
769 .long sys_ni_syscall /* old ulimit syscall holder */
770 .long sys_ni_syscall /* sys_olduname */
771 .long sys_umask /* 60 */
776 .long sys_getpgrp /* 65 */
778 .long sys_ni_syscall /* sigaction syscall holder */
779 .long sys_ni_syscall /* sgetmask syscall holder */
780 .long sys_ni_syscall /* ssetmask syscall holder */
781 .long sys_ni_syscall /* 70 - setreuid16 syscall holder */
782 .long sys_ni_syscall /* setregid16 syscall holder */
783 .long sys_ni_syscall /* sigsuspend syscall holder */
784 .long sys_ni_syscall /* sigpending syscall holder */
785 .long sys_sethostname
786 .long sys_setrlimit /* 75 */
787 .long sys_getrlimit/*will be unused*/
789 .long sys_gettimeofday
790 .long sys_settimeofday
791 .long sys_ni_syscall /* 80 - getgroups16 syscall holder */
792 .long sys_ni_syscall /* setgroups16 syscall holder */
793 .long sys_ni_syscall /* sys_oldselect */
795 .long sys_ni_syscall /* old lstat syscall holder */
796 .long sys_readlink /* 85 */
800 .long sys_ni_syscall /* readdir syscall holder */
801 .long sys_ni_syscall /* 90 - old_mmap syscall holder */
806 .long sys_ni_syscall /* 95 - fchwon16 syscall holder */
807 .long sys_getpriority
808 .long sys_setpriority
809 .long sys_ni_syscall /* old profil syscall holder */
811 .long sys_fstatfs /* 100 */
812 .long sys_ni_syscall /* ioperm syscall holder */
816 .long sys_getitimer /* 105 */
820 .long sys_ni_syscall /* old uname syscall holder */
821 .long sys_ni_syscall /* 110 - iopl syscall holder */
823 .long sys_ni_syscall /* idle syscall holder */
824 .long sys_ni_syscall /* vm86old syscall holder */
826 .long sys_swapoff /* 115 */
830 .long sys_ni_syscall /* sigreturn syscall holder */
831 .long sys_clone /* 120 */
832 .long sys_setdomainname
834 .long sys_ni_syscall /* modify_ldt syscall holder */
836 .long sys_mprotect /* 125 */
837 .long sys_ni_syscall /* sigprocmask syscall holder */
838 .long sys_ni_syscall /* create_module syscall holder */
839 .long sys_init_module
840 .long sys_delete_module
841 .long sys_ni_syscall /* 130 - get_kernel_syms */
846 .long sys_sysfs /* 135 */
847 .long sys_personality
848 .long sys_ni_syscall /* afs_syscall syscall holder */
849 .long sys_ni_syscall /* setfsuid16 syscall holder */
850 .long sys_ni_syscall /* setfsgid16 syscall holder */
851 .long sys_llseek /* 140 */
856 .long sys_readv /* 145 */
861 .long sys_mlock /* 150 */
865 .long sys_sched_setparam
866 .long sys_sched_getparam /* 155 */
867 .long sys_sched_setscheduler
868 .long sys_sched_getscheduler
869 .long sys_sched_yield
870 .long sys_sched_get_priority_max
871 .long sys_sched_get_priority_min /* 160 */
872 .long sys_sched_rr_get_interval
875 .long sys_ni_syscall /* setresuid16 syscall holder */
876 .long sys_ni_syscall /* 165 - getresuid16 syscall holder */
877 .long sys_tas /* vm86 syscall holder */
878 .long sys_ni_syscall /* query_module syscall holder */
881 .long sys_setresgid /* 170 */
884 .long sys_rt_sigreturn
885 .long sys_rt_sigaction
886 .long sys_rt_sigprocmask /* 175 */
887 .long sys_rt_sigpending
888 .long sys_rt_sigtimedwait
889 .long sys_rt_sigqueueinfo
890 .long sys_rt_sigsuspend
891 .long sys_pread64 /* 180 */
893 .long sys_ni_syscall /* chown16 syscall holder */
896 .long sys_capset /* 185 */
897 .long sys_sigaltstack
899 .long sys_ni_syscall /* streams1 */
900 .long sys_ni_syscall /* streams2 */
901 .long sys_vfork /* 190 */
905 .long sys_ftruncate64
906 .long sys_stat64 /* 195 */
911 .long sys_getgid /* 200 */
916 .long sys_getgroups /* 205 */
921 .long sys_setresgid /* 210 */
926 .long sys_setfsuid /* 215 */
931 .long sys_getdents64 /* 220 */
933 .long sys_ni_syscall /* reserved for TUX */
934 .long sys_ni_syscall /* Reserved for Security */
936 .long sys_readahead /* 225 */
941 .long sys_lgetxattr /* 230 */
946 .long sys_removexattr /* 235 */
947 .long sys_lremovexattr
948 .long sys_fremovexattr
951 .long sys_futex /* 240 */
952 .long sys_sched_setaffinity
953 .long sys_sched_getaffinity
954 .long sys_ni_syscall /* reserved for "set_thread_area" system call */
955 .long sys_ni_syscall /* reserved for "get_thread_area" system call */
956 .long sys_io_setup /* 245 */
958 .long sys_io_getevents
961 .long sys_fadvise64 /* 250 */
964 .long sys_lookup_dcookie
965 .long sys_epoll_create
966 .long sys_epoll_ctl /* 255 */
968 .long sys_remap_file_pages
969 .long sys_set_tid_address
970 .long sys_timer_create
971 .long sys_timer_settime /* 260 */
972 .long sys_timer_gettime
973 .long sys_timer_getoverrun
974 .long sys_timer_delete
975 .long sys_clock_settime
976 .long sys_clock_gettime /* 265 */
977 .long sys_clock_getres
978 .long sys_clock_nanosleep
981 .long sys_tgkill /* 270 */
983 .long sys_fadvise64_64
984 .long sys_ni_syscall /* Reserved for sys_vserver */
985 .long sys_ni_syscall /* Reserved for sys_mbind */
986 .long sys_ni_syscall /* Reserved for sys_get_mempolicy */
987 .long sys_ni_syscall /* Reserved for sys_set_mempolicy */
990 .long sys_mq_timedsend
991 .long sys_mq_timedreceive /* 280 */
993 .long sys_mq_getsetattr
994 .long sys_ni_syscall /* reserved for kexec */
997 syscall_table_size=(.-sys_call_table)