🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.unix.programming.kernel
1 messages
1 total messages Started by �������� Thu, 14 Mar 2002 04:38
Re: ������жϺ�3��4��5������
#97
Author: ��������
Date: Thu, 14 Mar 2002 04:38
27 lines
1608 bytes
set_system_gate(3,&int3); /* int3-5 can be called from all */
set_system_gate(4,&overflow);
set_system_gate(5,&bounds);

ENTRY(int3)
 pushl $0
 pushl $ SYMBOL_NAME(do_int3)
 jmp error_code

ENTRY(overflow)
 pushl $0
 pushl $ SYMBOL_NAME(do_overflow)
 jmp error_code

ENTRY(bounds)
 pushl $0
 pushl $ SYMBOL_NAME(do_bounds)
 jmp error_code

�� �� howTo (howto) �Ĵ������ᵽ: ��
��trap_init()�У�����������ʼ������system_gate ��
����˵���û��ռ����ͨ��int 3(4,5)������ÿ�
���������Դ������Ϊɶ�Ҳ�����ָ��ľ��庯����
����do_int3 ,do_overflow ,do_bounds�����
--
--
�� ��Դ:��UNIX��� apue.dhs.org��[FROM: 211.69.197.81] 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads