Message-ID: <4H90VU$wbx@smth.org>
Subject: Re: ��������
Date: Thu, 10 Mar 2005 11:59:57 +0000
From: Unknown <anon@nohost.local>
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!news4.google.com!news.glorb.com!nntp-server.pubsub.com!bbsnews.sdu.edu.cn!news.feeling.smth.org!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/I/M.1110455790.D0
Lines: 35
Xref: news.cnusenet.org cn.bbs.comp.unix.development.kernel:28658


�� �� abnormal (每�爱���一些) �拇������到: ��
linux�核版本0.11

�诤顺�始������校������卸���诘�址��

������拇��:�� include/asm/system.h��

#define set_intr_gate(n,addr) \
    _set_gate(&idt[n],14,0,addr)
_set_gate�亩������拢�
#define _set_gate(gate_addr,type,dpl,addr) \
__asm__ ("movw %%dx,%%ax\n\t" \
    "movw %0,%%dx\n\t" \
    "movl %%eax,%1\n\t" \
    "movl %%edx,%2" \    ����movl应�����������卸���诘�址
    : \
    : "i" ((short) (0x8000+(dpl<<13)+(type<<8))), \
    "o" (*((char *) (gate_addr))), \
    "o" (*(4+(char *) (gate_addr))), \
    "d" ((char *) (addr)),"a" (0x00080000))


����1��  idt没�卸��啊���������么���拢�����������卸�没�卸��。��没��指��原����head.s�卸����idt����
~~~~~~~~~~~~~~~~~~~~~~~~~~~~�����宏定�,�定��说���司����址��换����没�����图��之��摹�����head.s�械�idt������使��set_intr_gate()�牡胤������强杉��

����2��  ����嵌���。 ���1��前��一����直��说��addr���� edx�校�����一���兀�����������64位���挪���eax����
~~~~~~~~~~~~~~��说0x00080000������一�拢���么����64位��:)
--



--

�� ��源:��BBS 水木�华站 smth.org��[FROM: 202.118.70.*]