Setting up repository
[linux-libre-firmware.git] / ath9k_htc / sboot / magpie_1_1 / sboot / athos / src / xtos / exc-table.S
1 // exc-table.S - general exception C handler table
2
3 // Copyright (c) 1999-2010 Tensilica Inc.
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining
6 // a copy of this software and associated documentation files (the
7 // "Software"), to deal in the Software without restriction, including
8 // without limitation the rights to use, copy, modify, merge, publish,
9 // distribute, sublicense, and/or sell copies of the Software, and to
10 // permit persons to whom the Software is furnished to do so, subject to
11 // the following conditions:
12 //
13 // The above copyright notice and this permission notice shall be included
14 // in all copies or substantial portions of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 #include <xtensa/coreasm.h>
25 #include <xtensa/config/specreg.h>
26 #include "xtos-internal.h"
27
28
29 #if XCHAL_HAVE_EXCEPTIONS
30
31         /*
32          *  Table of exception handlers (in C) for user vectored exceptions.
33          *  Provides entries for all possible 64 exception causes
34          *  currently allowed for in the EXCCAUSE register.
35          */
36         .data
37         .global _xtos_c_handler_table
38         .align 4
39 _xtos_c_handler_table:
40         .rept   XCHAL_EXCCAUSE_NUM
41         .word   _xtos_p_none
42         .endr
43
44         /*
45          *  Default/empty exception C handler.
46          *  This is just a placeholder for exception causes with no registered
47          *  handler; it normally never gets executed.
48          *  NOTE:  control goes first to the debugger if one is present;
49          *         see _xtos_unhandled_exception in exc-unhandled.S .
50          */
51         .text
52         .align  4
53         .global _xtos_p_none
54         .type   _xtos_p_none,@function
55 _xtos_p_none:
56         abi_entry
57         //  Do nothing.
58         abi_return
59         .size   _xtos_p_none, . - _xtos_p_none
60
61 #endif /* XCHAL_HAVE_EXCEPTIONS */
62