3 Copyright (C) Dean Camera, 2011.
\r
5 dean [at] fourwalledcubicle [dot] com
\r
10 Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
\r
12 Permission to use, copy, modify, distribute, and sell this
\r
13 software and its documentation for any purpose is hereby granted
\r
14 without fee, provided that the above copyright notice appear in
\r
15 all copies and that both that the copyright notice and this
\r
16 permission notice and warranty disclaimer appear in supporting
\r
17 documentation, and that the name of the author not be used in
\r
18 advertising or publicity pertaining to distribution of the
\r
19 software without specific, written prior permission.
\r
21 The author disclaim all warranties with regard to this
\r
22 software, including all implied warranties of merchantability
\r
23 and fitness. In no event shall the author be liable for any
\r
24 special, indirect or consequential damages or any damages
\r
25 whatsoever resulting from loss of use, data or profits, whether
\r
26 in an action of contract, negligence or other tortious action,
\r
27 arising out of or in connection with the use or performance of
\r
31 #if defined(__AVR32__)
\r
32 #include <avr32/io.h>
\r
34 .section .exception_handlers, "ax", @progbits
\r
36 // ================= EXCEPTION TABLE ================
\r
42 Exception_Unrecoverable_Exception:
\r
45 Exception_TLB_Multiple_Hit:
\r
48 Exception_Bus_Error_Data_Fetch:
\r
51 Exception_Bus_Error_Instruction_Fetch:
\r
57 Exception_Instruction_Address:
\r
60 Exception_ITLB_Protection:
\r
63 Exception_OCD_Breakpoint:
\r
66 Exception_Illegal_Opcode:
\r
69 Exception_Unimplemented_Instruction:
\r
72 Exception_Privilege_Violation:
\r
75 Exception_Floating_Point:
\r
78 Exception_Coprocessor_Absent:
\r
81 Exception_Data_Address_Read:
\r
84 Exception_Data_Address_Write:
\r
87 Exception_DTLB_Protection_Read:
\r
90 Exception_DTLB_Protection_Write:
\r
93 Exception_DTLB_Modified:
\r
96 Exception_ITLB_Miss:
\r
99 Exception_DTLB_Miss_Read:
\r
102 Exception_DTLB_Miss_Write:
\r
105 Exception_Supervisor_Call:
\r
107 // ============== END OF EXCEPTION TABLE =============
\r
109 // ============= GENERAL INTERRUPT HANDLER ===========
\r
111 .irp Level, 0, 1, 2, 3
\r
112 Exception_INT\Level:
\r
114 call INTC_GetInterruptHandler
\r
117 // ========= END OF GENERAL INTERRUPT HANDLER ========
\r
119 // ====== GENERAL INTERRUPT HANDLER OFFSET TABLE ======
\r
121 .global Autovector_Table
\r
123 .irp Level, 0, 1, 2, 3
\r
124 .word ((AVR32_INTC_INT0 + \Level) << AVR32_INTC_IPR_INTLEVEL_OFFSET) | (Exception_INT\Level - EVBA_Table)
\r
126 // === END OF GENERAL INTERRUPT HANDLER OFFSET TABLE ===
\r