Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

exception.c File Reference

Exceptions manager. More...

#include <const.h>
#include <kernel/console.h>
#include <kernel/task.h>
#include <arch/i386.h>
#include <arch/interrupt.h>
#include <arch/mem.h>
#include <arch/paging.h>
#include <arch/v86.h>
#include <arch/exception.h>

Go to the source code of this file.

Functions

void panic ()
 Panic routine.

__inline__ void dump_registers (exc_context_t *c)
 Dump the CPU registers.
Parameters:
c  The context of the current task after an exception.


void default_exception (exc_context_t *c)
 This is the default exception handler. It is invoked every time an exception occurs. The kernel must route the exececution to the opportune procedures to correctly manage the exception.
Parameters:
c  The context of the current task after an exception.



Detailed Description

Exceptions manager.

Author:
Andrea Righi <drizzt@inwind.it>
Date:
Last update: 2004-01-24
Note:
Copyright (©) 2003 Andrea Righi

From: <INTEL 80386 PROGRAMMER'S REFERENCE MANUAL 1986>
IdentifierDescription

0Divide error
1Debug exception
2Nonmaskable interrupt
3Breakpoint (one-byte INT 3 instruction)
4Overflow (INTO instruction)
5Bounds check (BOUND instruction)
6Invalid opcode
7Coprocessor not available
8Double fault
9(reserved)
10Invalid TSS
11Segment not present
12Stack exception
13General protection
14Page fault
15(reserved)
16Coprecessor error

17-31(reserved)
32-255Available for external interrupts via INTR pin

Definition in file exception.c.


Generated on Fri Feb 20 15:32:17 2004 for Minirighi by doxygen1.2.18