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