🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#98
From: ��������
Date: Thu, 14 Mar 2002 05:09
32 lines
2082 bytes
���µĺ�չ�����ǵ��ˡ�(traps.c)
DO_VM86_ERROR_INFO( 0, SIGFPE,  "divide error", divide_error, FPE_INTDIV, 
regs->eip)
DO_VM86_ERROR( 3, SIGTRAP, "int3", int3)
DO_VM86_ERROR( 4, SIGSEGV, "overflow", overflow)
DO_VM86_ERROR( 5, SIGSEGV, "bounds", bounds)
DO_ERROR_INFO( 6, SIGILL,  "invalid operand", invalid_op, ILL_ILLOPN, 
regs->eip)
DO_VM86_ERROR( 7, SIGSEGV, "device not available", device_not_available)
DO_ERROR( 8, SIGSEGV, "double fault", double_fault)
DO_ERROR( 9, SIGFPE,  "coprocessor segment overrun", 
coprocessor_segment_overrun)
DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS)
DO_ERROR(11, SIGBUS,  "segment not present", segment_not_present)
DO_ERROR(12, SIGBUS,  "stack segment", stack_segment)
DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, 
get_cr2())

 �� �� ysqcn ( ��������) �Ĵ������ᵽ: ��: 
set_system_gate(3,&int3); 
/* int3-5 can be called from all */ : set_system_gate(4,&overflow);
: set_system_gate(5,&bounds);
: ���������do_???������û���ҵ�����һ���ڿ�����
: entry.S
: ENTRY(int3)
:  pushl $0
:  pushl $ SYMBOL_NAME(do_int3)
:  jmp error_code
: ENTRY(overflow)
: .................������ʡ�ԣ�
--
�� ��Դ:��UNIX��� apue.dhs.org��[FROM: 211.69.197.81] 
Technical Details
Message-ID: <3lJW1W$09c@apue.dhs.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!news.cn99.com!news.tiaozhan.com!APUE

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10e809,97cba3f5b38318c3
X-Google-Attributes: gid10e809,public
X-Google-ArrivalTime: 2002-03-13 21:21:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.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 05:09:26 GMT
Organization: APUE
Message-ID: <3lJW1W$09c@apue.dhs.org>
X-Filename: UKP/M.1016082512.A
Lines: 32