GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / cfe / cfe / arch / arm / common / src / exception.S
blob4f353ed76ceeef1a3ffe3e11630c7aca31ff87fe
1 /*  *********************************************************************
2     *  BCM947xx Board Support Package
3     *  
4     *  Exception Handler                        File: exception.S
5     *  
6     *  Author: 
7     *  
8     *********************************************************************  
9     *
10     *  Copyright 2000,2001,2002,2003
11     *  Broadcom Corporation. All rights reserved.
12     *  
13     *  This software is furnished under license and may be used and 
14     *  copied only in accordance with the following terms and 
15     *  conditions.  Subject to these conditions, you may download, 
16     *  copy, install, use, modify and distribute modified or unmodified 
17     *  copies of this software in source and/or binary form.  No title 
18     *  or ownership is transferred hereby.
19     *  
20     *  1) Any source code used, modified or distributed must reproduce 
21     *     and retain this copyright notice and list of conditions 
22     *     as they appear in the source file.
23     *  
24     *  2) No right is granted to use any trade name, trademark, or 
25     *     logo of Broadcom Corporation.  The "Broadcom Corporation" 
26     *     name may not be used to endorse or promote products derived 
27     *     from this software without the prior written permission of 
28     *     Broadcom Corporation.
29     *  
30     *  3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR
31     *     IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED
32     *     WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
33     *     PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT 
34     *     SHALL BROADCOM BE LIABLE FOR ANY DAMAGES WHATSOEVER, AND IN 
35     *     PARTICULAR, BROADCOM SHALL NOT BE LIABLE FOR DIRECT, INDIRECT,
36     *     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
37     *     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
38     *     GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
39     *     BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
40     *     OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 
41     *     TORT (INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF 
42     *     THE POSSIBILITY OF SUCH DAMAGE.
43     ********************************************************************* */
46 //#include "sbmips.h"
47 //#include "exception.h"
48 #include <arminc.h>
49 #include <armmacros.h>
50 //#include "cpu_config.h"               /* for definition of HAZARD and ERET */
51 //#include "bsp_config.h"
53 /*  *********************************************************************
54     *  _exc_setvector(xtype,addr)
55     *  
56     *  Set an exception vector address
57     *  
58     *  Input parameters: 
59     *      xtype - exception vector type
60     *      addr - routine address
61     *      
62     *  Return value:
63     *      nothing
64     ********************************************************************* */
66 FUNC(_exc_setvector)
68                 mov pc,lr
70 END(_exc_setvector)
73 /*  *********************************************************************
74     *  _exc_cache_crash_sim()
75     *  
76     *  As _exc_crash_sim, but distinguish cache error exception.
77     *  
78     *  Input parameters: 
79     *      nothing
80     *      
81     *  Return value:
82     *      nothing - does not return
83     ********************************************************************* */
86 FUNC(_exc_cache_crash_sim)
87 END(_exc_cache_crash_sim)
90 /*  *********************************************************************
91     *  _exc_restart()
92     *  
93     *  Restart the firmware at the boot address
94     *  
95     *  Input parameters: 
96     *      nothing
97     *      
98     *  Return value:
99     *      nothing
100     ********************************************************************* */
102 FUNC(_exc_restart)
104                 ldr     lr,=0xFFFF0000          /* ROM restart vector */
105                 mov     pc,lr
107 END(_exc_restart)
110 /*  *********************************************************************
111     * _exc_clear_sr_exl()
112     *   
113     * Clear SR(EXL) and return to caller.
114     *
115     * Input parameters: 
116     *   nothing
117     *
118     * Return value:     
119     *   nothing                                 
120     ********************************************************************* */
121         
122 FUNC(_exc_clear_sr_exl)
123                 mov pc,lr
124 END(_exc_clear_sr_exl)                  
126 /*  *********************************************************************
127     * _exc_clear_sr_erl()
128     *   
129     * Clear SR(ERL) and return to caller.
130     *
131     * Input parameters: 
132     *   nothing
133     *
134     * Return value:     
135     *   nothing                                 
136     ********************************************************************* */
137         
138 FUNC(_exc_clear_sr_erl)
139                 mov pc,lr
140         
141 END(_exc_clear_sr_erl)                  
142         
144 /*  *********************************************************************
145     *  End
146     ********************************************************************* */