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

exception.h

Go to the documentation of this file.
00001 /*!     \file include/arch/exception.h
00002  *      \brief Exceptions header.
00003  *      \author Andrea Righi <drizzt@inwind.it>
00004  *      \date Last update: 2003-11-04
00005  *      \note Copyright (&copy;) 2003 Andrea Righi
00006  */
00007 
00008 #ifndef EXCEPTION_H
00009 #define EXCEPTION_H
00010 
00011 #include <const.h>
00012 
00013 //! Context after an exception.
00014 typedef struct exc_context
00015 {
00016         //! General purpose register.
00017         uint32_t        edi, esi, ebp, esp, ebx, edx, ecx, eax;
00018         //! Segment register.
00019         uint32_t        es, ds, fs, gs;
00020         //! The exception number and error code.
00021         uint32_t        EXC, err_code;
00022         //! Current instruction pointer (a.k.a. program counter).
00023         uint32_t        eip;
00024         //! Code segment register.
00025         uint32_t        cs;
00026         //! EFLAGS register.
00027         uint32_t        eflags;
00028 } __attribute__ ((packed)) exc_context_t;
00029 
00030 // --- Prototypes ----------------------------------------------------- //
00031 
00032 void exception00();
00033 void exception01();
00034 void exception02();
00035 void exception03();
00036 void exception04();
00037 void exception05();
00038 void exception06();
00039 void exception07();
00040 void exception08();
00041 void exception09();
00042 void exception0A();
00043 void exception0B();
00044 void exception0C();
00045 void exception0D();
00046 void exception0E();
00047 void exception0F();
00048 void exception10();
00049 void exception11();
00050 void exception12();
00051 
00052 #endif

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