Message-ID: <4H78Qb$xjZ@smth.org>
Subject: Re: �诤�态���没�态���谢�����
Date: Tue, 08 Mar 2005 03:33:25 +0000
From: mildwolf@smth.org-SPAM.no (zhuxiaozhu)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.development.kernel.mbox.zip!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!nntp-server.pubsub.com!bbsnews.sdu.edu.cn!maily.cic.tsinghua.edu.cn!SMTH
Newsgroups: cn.bbs.comp.unix.development.kernel
Organization: BBS 水木�华站
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: KernelTech/M/M.1110252805.Z0
Lines: 46
Xref: news.cnusenet.org cn.bbs.comp.unix.development.kernel:28565

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?
: ����没�斜�要



--

�� ��源:��BBS 水木�华站 http://smth.org��[FROM: 159.226.50.*]