patch-2.3.22 linux/arch/i386/kernel/entry.S
Next file: linux/arch/i386/kernel/pci-pc.c
Previous file: linux/arch/i386/defconfig
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Tue Oct 12 10:05:53 1999
- Orig file:
v2.3.21/linux/arch/i386/kernel/entry.S
- Orig date:
Sat Oct 9 11:47:50 1999
diff -u --recursive --new-file v2.3.21/linux/arch/i386/kernel/entry.S linux/arch/i386/kernel/entry.S
@@ -237,8 +237,11 @@
movl $-ENOSYS,EAX(%esp)
call SYMBOL_NAME(syscall_trace)
movl ORIG_EAX(%esp),%eax
+ cmpl $(NR_syscalls),%eax
+ jae tracesys_exit
call *SYMBOL_NAME(sys_call_table)(,%eax,4)
movl %eax,EAX(%esp) # save the return value
+tracesys_exit:
call SYMBOL_NAME(syscall_trace)
jmp ret_from_sys_call
badsys:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)