2 * Copyright (C) 1998 Dan Malek <dmalek@jlc.net>
3 * Copyright (C) 1999 Magnus Damm <kieraypc01.p.y.kie.era.ericsson.se>
4 * Copyright (C) 2000-2003 Wolfgang Denk <wd@denx.de>
5 * Coldfire contribution by Bernhard Kuhn <bkuhn@metrowerks.com>
7 * See file CREDITS for list of people who contributed to this
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 #ifndef CONFIG_IDENT_STRING
30 #define CONFIG_IDENT_STRING ""
33 #define MCF_MBAR 0x10000000
34 #define MEM_BUILTIN_ADDR 0x20000000
35 #define MEM_BUILTIN_SIZE 0x1000
37 #define DRAM_SIZE 0x400000
51 move.l #(MCF_MBAR+1), %d0
54 move.l #(MEM_BUILTIN_ADDR+1), %d0
57 move.l #0x01000000, %d0 /* Invalidate cache cmd */
58 movec %d0, %CACR /* Invalidate cache */
59 move.l #0x0000c000, %d0 /* Setup cache mask */
60 movec %d0, %ACR0 /* Enable cache */
61 move.l #0xff00c000, %d0 /* Setup cache mask */
62 movec %d0, %ACR1 /* Enable cache */
63 move.l #0x80000100, %d0 /* Setup cache mask */
64 movec %d0, %CACR /* Enable cache */
74 /* move.l #MEM_BUILTIN_ADDR+MEM_BUILTIN_SIZE, %sp */
75 move.l #DRAM_ADDR+DRAM_SIZE, %sp
80 .globl exception_handler
84 movem.l %d0-%d7/%a0-%a6,%sp@
86 movem.l %sp@,%d0-%d7/%a0-%a6
90 .globl buserror_handler
94 movem.l %d0-%d7/%a0-%a6,%sp@
96 movem.l %sp@,%d0-%d7/%a0-%a6
100 .globl addresserror_handler
101 addresserror_handler:
104 movem.l %d0-%d7/%a0-%a6,%sp@
106 movem.l %sp@,%d0-%d7/%a0-%a6
118 move.l #0x01000000, %d0 /* Invalidate cache cmd */
119 movec %d0, %CACR /* Invalidate cache */
120 move.l #0x0000c000, %d0 /* Setup cache mask */
121 movec %d0, %ACR0 /* Enable cache */
122 move.l #0xff00c000, %d0 /* Setup cache mask */
123 movec %d0, %ACR1 /* Enable cache */
124 move.l #0x80000100, %d0 /* Setup cache mask */
125 movec %d0, %CACR /* Enable cache */
127 move.l %d0, icache_state
130 .globl icache_disable
132 move.l #0x00000100, %d0 /* Setup cache mask */
133 movec %d0, %CACR /* Enable cache */
134 clr.l %d0 /* Setup cache mask */
135 movec %d0, %ACR0 /* Enable cache */
136 movec %d0, %ACR1 /* Enable cache */
138 move.l %d0, icache_state
147 .globl icache_disable
154 move.l icache_state, %d0
161 .globl version_string
163 .ascii U_BOOT_VERSION
164 .ascii " (", __DATE__, " - ", __TIME__, ")"
165 .ascii CONFIG_IDENT_STRING, "\0"