1 // exc-table.S - general exception C handler table
3 // Copyright (c) 1999-2010 Tensilica Inc.
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:
13 // The above copyright notice and this permission notice shall be included
14 // in all copies or substantial portions of the Software.
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.
24 #include <xtensa/coreasm.h>
25 #include <xtensa/config/specreg.h>
26 #include "xtos-internal.h"
29 #if XCHAL_HAVE_EXCEPTIONS
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.
37 .global _xtos_c_handler_table
39 _xtos_c_handler_table:
40 .rept XCHAL_EXCCAUSE_NUM
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 .
54 .type _xtos_p_none,@function
59 .size _xtos_p_none, . - _xtos_p_none
61 #endif /* XCHAL_HAVE_EXCEPTIONS */