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