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����
����2�� ����嵌���。 ���1��前��一����直��说��addr���� edx�校�����一���兀�����������64位���挪���eax����
--
[m[36m�� ��源:��BBS 水木�华站 http://smth.org��[FROM: 219.223.192.*][m