Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / build / magpie_1_1 / sboot / athos / src / xtos / _vectors.S
1 // _vectors.S  --  Reference symbols to pull in all required vectors
2 // $Id: //depot/rel/Cottonwood/Xtensa/OS/xtos/_vectors.S#2 $
3
4 // Copyright (c) 2004, 2006-2007 Tensilica Inc.
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining
7 // a copy of this software and associated documentation files (the
8 // "Software"), to deal in the Software without restriction, including
9 // without limitation the rights to use, copy, modify, merge, publish,
10 // distribute, sublicense, and/or sell copies of the Software, and to
11 // permit persons to whom the Software is furnished to do so, subject to
12 // the following conditions:
13 //
14 // The above copyright notice and this permission notice shall be included
15 // in all copies or substantial portions of the Software.
16 //
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 #include <xtensa/coreasm.h>
26 #include <xtensa/config/system.h>       /* for XSHAL_VECTORS_PACKED */
27
28 .global _ResetVector
29
30 #if XCHAL_HAVE_EXCEPTIONS
31
32 # if XCHAL_HAVE_DEBUG
33 .global _DebugExceptionVector
34 # endif
35
36 .global _KernelExceptionVector
37 .global _UserExceptionVector
38
39 # ifdef XCHAL_DOUBLEEXC_VECTOR_VADDR
40 .global _DoubleExceptionVector
41 # endif
42
43 # if XCHAL_HAVE_NMI
44 .global _NMIExceptionVector
45 # endif
46
47 # if XCHAL_HAVE_WINDOWED
48 .global _WindowOverflow4
49 .global _WindowUnderflow4
50 .global _WindowOverflow8
51 .global _WindowUnderflow8
52 .global _WindowOverflow12
53 .global _WindowUnderflow12
54 # endif
55
56 # if XCHAL_HAVE_MEM_ECC_PARITY
57 .global _MemErrorVector
58 # endif
59
60 #endif /* XCHAL_HAVE_EXCEPTIONS */
61
62
63 #if (XCHAL_NUM_INTLEVELS >= 2) && (2 != XCHAL_DEBUGLEVEL)
64 .global _Level2Vector
65 #endif
66 #if (XCHAL_NUM_INTLEVELS >= 3) && (3 != XCHAL_DEBUGLEVEL)
67 .global _Level3Vector
68 #endif
69 #if (XCHAL_NUM_INTLEVELS >= 4) && (4 != XCHAL_DEBUGLEVEL)
70 .global _Level4Vector
71 #endif
72 #if (XCHAL_NUM_INTLEVELS >= 5) && (5 != XCHAL_DEBUGLEVEL)
73 .global _Level5Vector
74 #endif
75 #if (XCHAL_NUM_INTLEVELS >= 6) && (6 != XCHAL_DEBUGLEVEL)
76 .global _Level6Vector
77 #endif
78
79 #if XCHAL_HAVE_VECBASE && XSHAL_VECTORS_PACKED
80 .global _RelocVectors
81 #endif
82
83 /*  These don't take up space:  */
84 .global xthals_hw_configid0
85 .global xthals_hw_configid1
86 .global xthals_release_major
87 .global xthals_release_minor
88
89 /*  The following allows this object file to be pulled in by reference:  */
90 .text
91 .global _xtos_vectors_ref_
92 .set    _xtos_vectors_ref_, 0
93
94