�� �� 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位��:)
--
--
[m[1;37m�� ��源:��BBS 水木�华站 smth.org��[FROM: 202.118.70.*][m