1 /* *********************************************************************
2 * BCM947xx Board Support Package
4 * Exception Handler File: exception.S
8 *********************************************************************
10 * Copyright 2000,2001,2002,2003
11 * Broadcom Corporation. All rights reserved.
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.
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.
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.
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 ********************************************************************* */
47 //#include "exception.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)
56 * Set an exception vector address
59 * xtype - exception vector type
60 * addr - routine address
64 ********************************************************************* */
73 /* *********************************************************************
74 * _exc_cache_crash_sim()
76 * As _exc_crash_sim, but distinguish cache error exception.
82 * nothing - does not return
83 ********************************************************************* */
86 FUNC(_exc_cache_crash_sim)
87 END(_exc_cache_crash_sim)
90 /* *********************************************************************
93 * Restart the firmware at the boot address
100 ********************************************************************* */
104 ldr lr,=0xFFFF0000 /* ROM restart vector */
110 /* *********************************************************************
111 * _exc_clear_sr_exl()
113 * Clear SR(EXL) and return to caller.
120 ********************************************************************* */
122 FUNC(_exc_clear_sr_exl)
124 END(_exc_clear_sr_exl)
126 /* *********************************************************************
127 * _exc_clear_sr_erl()
129 * Clear SR(ERL) and return to caller.
136 ********************************************************************* */
138 FUNC(_exc_clear_sr_erl)
141 END(_exc_clear_sr_erl)
144 /* *********************************************************************
146 ********************************************************************* */