🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.unix.programming.kernel
Article #97

Re: ������жϺ�3��4��5������

#97
From: ��������
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] 
Technical Details
Message-ID: <3lJVAg$0DX@apue.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!62.24.128.9.MISMATCH!news-1.opaltelecom.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.tiaozhan.com!APUE

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10e809,97cba3f5b38318c3,start
X-Google-Attributes: gid10e809,public
X-Google-ArrivalTime: 2002-03-13 20:50:53 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!62.24.128.9.MISMATCH!news-1.opaltelecom.net!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.tiaozhan.com!APUE
From: ysqcn.bbs@apue.dhs.org (��������)
Newsgroups: cn.bbs.comp.unix.programming.kernel
Subject: Re: ������жϺ�3��4��5������
Date: 14 Mar 2002 04:38:49 GMT
Organization: APUE
Message-ID: <3lJVAg$0DX@apue.dhs.org>
X-Filename: UKP/M.1016080650.A
Lines: 27