🚀 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 05:09
Re: ������жϺ�3��4��5������
#98
Author: ��������
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] 
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