3 * Purpose: Generic exception handling for ColdFire processors
8 #ifndef _MCF_EXCEPTIONS_H
9 #define _MCF_EXCEPTIONS_H
15 /***********************************************************************/
17 * This is the handler for all exceptions which are not common to all
20 * Called by mcf_exception_handler
23 void derivative_interrupt(unsigned long vector);
25 /***********************************************************************/
27 * This is the exception handler for all exceptions common to all
28 * chips ColdFire. Most exceptions do nothing, but some of the more
29 * important ones are handled to some extent.
31 * Called by asm_exception_handler
33 void mcf_exception_handler(void *framepointer);
36 /***********************************************************************/
38 * This is the assembly exception handler defined in the vector table.
39 * This function is in assembler so that the frame pointer can be read
41 * Note that the way to give the stack frame as argument to the c handler
42 * depends on the used ABI (Register, Compact or Standard).
45 asm void asm_exception_handler(void);
47 /***********************************************************************/
48 /* MCF5xxx exceptions table initialization:
50 * Set VBR and performs RAM vector table initialization.
51 * The following symbol should be defined in the lcf:
54 * _vect is the start of the exception table in the code
55 * In case _vect address is different from __VECTOR_RAM,
56 * the vector table is copied from _vect to __VECTOR_RAM.
57 * In any case VBR is set to __VECTOR_RAM.
59 void initialize_exceptions(void);
66 #endif /* _MCF_EXCEPTIONS_H */