linux���������貌���������
������系统���煤����abc->INT0X80->ENTRY(system_call)->SAVE_ALL...->sys_call_table->sys_abc...->RESTORE_ALL
ENTRY(system_call)
pushl %eax # save orig_eax
SAVE_ALL
GET_THREAD_INFO(%ebp)
cmpl $(nr_syscalls), %eax
jae syscall_badsys
# system call tracing in operation
testb $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT),TI_flags(%ebp)
jnz syscall_trace_entry
syscall_call:
call *sys_call_table(,%eax,4)
movl %eax,EAX(%esp) # store the return value
syscall_exit:
cli # make sure we don't miss an interrupt
# setting need_resched or sigpending
# between sampling and the iret
movl TI_flags(%ebp), %ecx
testw $_TIF_ALLWORK_MASK, %cx # current->work
jne syscall_exit_work
restore_all:
RESTORE_ALL
���sys_abc������么��时�������殖������储�����系统��栈���校���������状态flags����前��执��位�茫����通���歉��拇��������?�����鹊�
�������麓伪�选��执�校���要��状态���诙�栈�校�RESTORE_ALL �涂����恕�����
�� �� induct (favourite) �拇������到: ��
: �业����������诤��蟹����私�痰��龋����选��一���碌慕��投�����校���么��伟�eflags�指�为�碌慕���洗畏������时���eflags?
: ����没�斜�要
--
[m[32m�� ��源:��BBS 水木�华站 http://smth.org��[FROM: 159.226.50.*][m