diff options
Diffstat (limited to 'arch/mips/kernel/scall32-o32.S')
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 80ff9422215f..9ea29649fc28 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -24,7 +24,7 @@ | |||
24 | /* Highest syscall used of any syscall flavour */ | 24 | /* Highest syscall used of any syscall flavour */ |
25 | #define MAX_SYSCALL_NO __NR_O32_Linux + __NR_O32_Linux_syscalls | 25 | #define MAX_SYSCALL_NO __NR_O32_Linux + __NR_O32_Linux_syscalls |
26 | 26 | ||
27 | .align 5 | 27 | .align 5 |
28 | NESTED(handle_sys, PT_SIZE, sp) | 28 | NESTED(handle_sys, PT_SIZE, sp) |
29 | .set noat | 29 | .set noat |
30 | SAVE_SOME | 30 | SAVE_SOME |
@@ -54,7 +54,7 @@ stack_done: | |||
54 | lw t0, TI_FLAGS($28) # syscall tracing enabled? | 54 | lw t0, TI_FLAGS($28) # syscall tracing enabled? |
55 | li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | 55 | li t1, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT |
56 | and t0, t1 | 56 | and t0, t1 |
57 | bnez t0, syscall_trace_entry # -> yes | 57 | bnez t0, syscall_trace_entry # -> yes |
58 | 58 | ||
59 | jalr t2 # Do The Real Thing (TM) | 59 | jalr t2 # Do The Real Thing (TM) |
60 | 60 | ||
@@ -126,8 +126,8 @@ stackargs: | |||
126 | la t1, 5f # load up to 3 arguments | 126 | la t1, 5f # load up to 3 arguments |
127 | subu t1, t3 | 127 | subu t1, t3 |
128 | 1: lw t5, 16(t0) # argument #5 from usp | 128 | 1: lw t5, 16(t0) # argument #5 from usp |
129 | .set push | 129 | .set push |
130 | .set noreorder | 130 | .set noreorder |
131 | .set nomacro | 131 | .set nomacro |
132 | jr t1 | 132 | jr t1 |
133 | addiu t1, 6f - 5f | 133 | addiu t1, 6f - 5f |
@@ -205,7 +205,7 @@ illegal_syscall: | |||
205 | jr t2 | 205 | jr t2 |
206 | /* Unreached */ | 206 | /* Unreached */ |
207 | 207 | ||
208 | einval: li v0, -ENOSYS | 208 | einval: li v0, -ENOSYS |
209 | jr ra | 209 | jr ra |
210 | END(sys_syscall) | 210 | END(sys_syscall) |
211 | 211 | ||
@@ -354,7 +354,7 @@ einval: li v0, -ENOSYS | |||
354 | sys sys_ni_syscall 0 /* was create_module */ | 354 | sys sys_ni_syscall 0 /* was create_module */ |
355 | sys sys_init_module 5 | 355 | sys sys_init_module 5 |
356 | sys sys_delete_module 1 | 356 | sys sys_delete_module 1 |
357 | sys sys_ni_syscall 0 /* 4130 was get_kernel_syms */ | 357 | sys sys_ni_syscall 0 /* 4130 was get_kernel_syms */ |
358 | sys sys_quotactl 4 | 358 | sys sys_quotactl 4 |
359 | sys sys_getpgid 1 | 359 | sys sys_getpgid 1 |
360 | sys sys_fchdir 1 | 360 | sys sys_fchdir 1 |
@@ -589,7 +589,7 @@ einval: li v0, -ENOSYS | |||
589 | /* We pre-compute the number of _instruction_ bytes needed to | 589 | /* We pre-compute the number of _instruction_ bytes needed to |
590 | load or store the arguments 6-8. Negative values are ignored. */ | 590 | load or store the arguments 6-8. Negative values are ignored. */ |
591 | 591 | ||
592 | .macro sys function, nargs | 592 | .macro sys function, nargs |
593 | PTR \function | 593 | PTR \function |
594 | LONG (\nargs << 2) - (5 << 2) | 594 | LONG (\nargs << 2) - (5 << 2) |
595 | .endm | 595 | .endm |