blob: f7f124dd2fcd3e4a3e2c3996d4c7695ef6831b96 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenkbf9e3b32004-02-12 00:47:09 +00002/*
3 * Copyright (C) 2003 Josef Baumgartner <josef.baumgartner@telex.de>
4 * Based on code from Bernhard Kuhn <bkuhn@metrowerks.com>
wdenkbf9e3b32004-02-12 00:47:09 +00005 */
6
Wolfgang Denk25ddd1f2010-10-26 14:34:52 +02007#include <asm-offsets.h>
wdenkbf9e3b32004-02-12 00:47:09 +00008#include <config.h>
9#include "version.h"
TsiChung Liewdd9f0542010-03-11 22:12:53 -060010#include <asm/cache.h>
wdenkbf9e3b32004-02-12 00:47:09 +000011
wdenkbf9e3b32004-02-12 00:47:09 +000012#define _START _start
13#define _FAULT _fault
14
15
16#define SAVE_ALL \
17 move.w #0x2700,%sr; /* disable intrs */ \
18 subl #60,%sp; /* space for 15 regs */ \
19 moveml %d0-%d7/%a0-%a6,%sp@; \
20
21#define RESTORE_ALL \
22 moveml %sp@,%d0-%d7/%a0-%a6; \
23 addl #60,%sp; /* space for 15 regs */ \
24 rte
25
26/* If we come from a pre-loader we don't need an initial exception
27 * table.
28 */
29#if !defined(CONFIG_MONITOR_IS_IN_RAM)
30
31.text
Angelo Dureghello5c928d02016-05-22 00:14:29 +020032
wdenkbf9e3b32004-02-12 00:47:09 +000033/*
Angelo Dureghello5c928d02016-05-22 00:14:29 +020034 * Vector table. This is used for initial platform startup.
35 * These vectors are to catch any un-intended traps.
wdenkbf9e3b32004-02-12 00:47:09 +000036 */
37_vectors:
Wolfgang Denk4176c792006-06-10 19:27:47 +020038.long 0x00000000 /* Flash offset is 0 until we setup CS0 */
Wolfgang Denk14d0a022010-10-07 21:51:12 +020039#if defined(CONFIG_M5282) && (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
40.long _start - CONFIG_SYS_TEXT_BASE
Zachary P. Landaueacbd312006-01-26 17:35:56 -050041#else
Wolfgang Denk4176c792006-06-10 19:27:47 +020042.long _START
Zachary P. Landaueacbd312006-01-26 17:35:56 -050043#endif
Wolfgang Denk4176c792006-06-10 19:27:47 +020044
wdenkbf9e3b32004-02-12 00:47:09 +000045.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
46.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
47.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
48.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
49.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
50.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
51.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
52.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
53
54.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
55.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
56.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
57.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
58.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
59.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
60.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
61.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
62
63.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
64.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
65.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
66.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
67.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
68.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
69.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
70.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
71
72.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
73.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
74.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
75.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
76.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
77.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
78.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
79.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
80
81#endif
82
Angelo Dureghello5c928d02016-05-22 00:14:29 +020083.text
Heiko Schocher9acb6262006-04-20 08:42:42 +020084
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020085#if defined(CONFIG_SYS_INT_FLASH_BASE) && \
Heiko Schocher9acb6262006-04-20 08:42:42 +020086 (defined(CONFIG_M5282) || defined(CONFIG_M5281))
Angelo Dureghello5c928d02016-05-22 00:14:29 +020087#if (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
88.long 0x55AA55AA,0xAA55AA55 /* CFM Backdoorkey */
89.long 0xFFFFFFFF /* all sectors protected */
90.long 0x00000000 /* supervisor/User restriction */
91.long 0x00000000 /* programm/data space restriction */
92.long 0x00000000 /* Flash security */
Heiko Schocher9acb6262006-04-20 08:42:42 +020093#endif
Angelo Dureghello5c928d02016-05-22 00:14:29 +020094#endif
95
96.globl _start
wdenkbf9e3b32004-02-12 00:47:09 +000097_start:
98 nop
99 nop
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200100 move.w #0x2700,%sr
wdenkbf9e3b32004-02-12 00:47:09 +0000101
TsiChung Liewbf9a5212009-06-12 11:29:00 +0000102#if defined(CONFIG_M5208)
103 /* Initialize RAMBAR: locate SRAM and validate it */
104 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
105 movec %d0, %RAMBAR1
106#endif
107
TsiChungLiewa1436a82007-08-16 13:20:50 -0500108#if defined(CONFIG_M5272) || defined(CONFIG_M5249) || defined(CONFIG_M5253)
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200109 /* set MBAR address + valid flag */
110 move.l #(CONFIG_SYS_MBAR + 1), %d0
wdenkbf9e3b32004-02-12 00:47:09 +0000111 move.c %d0, %MBAR
112
stroese8c725b92004-12-16 18:09:49 +0000113 /*** The 5249 has MBAR2 as well ***/
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200114#ifdef CONFIG_SYS_MBAR2
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200115 /* Get MBAR2 address */
116 move.l #(CONFIG_SYS_MBAR2 + 1), %d0
117 /* Set MBAR2 */
118 movec %d0, #0xc0e
stroese8c725b92004-12-16 18:09:49 +0000119#endif
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200120 move.l #(CONFIG_SYS_INIT_RAM_ADDR + 1), %d0
wdenkbf9e3b32004-02-12 00:47:09 +0000121 movec %d0, %RAMBAR0
TsiChungLiewa1436a82007-08-16 13:20:50 -0500122#endif /* CONFIG_M5272 || CONFIG_M5249 || CONFIG_M5253 */
wdenkbf9e3b32004-02-12 00:47:09 +0000123
Wolfgang Denk4176c792006-06-10 19:27:47 +0200124#if defined(CONFIG_M5282) || defined(CONFIG_M5271)
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200125 /* set MBAR address + valid flag */
126 move.l #(CONFIG_SYS_MBAR + 1), %d0
wdenkbf9e3b32004-02-12 00:47:09 +0000127 move.l %d0, 0x40000000
128
wdenkbf9e3b32004-02-12 00:47:09 +0000129 /* Initialize RAMBAR1: locate SRAM and validate it */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200130 move.l #(CONFIG_SYS_INIT_RAM_ADDR + 0x21), %d0
wdenkbf9e3b32004-02-12 00:47:09 +0000131 movec %d0, %RAMBAR1
Heiko Schocher9acb6262006-04-20 08:42:42 +0200132
Bartlomiej Siekadaa6e412006-12-20 00:27:32 +0100133#if defined(CONFIG_M5282)
Wolfgang Denk14d0a022010-10-07 21:51:12 +0200134#if (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200135 /*
136 * Setup code in SRAM to initialize FLASHBAR,
137 * if start from internal Flash
138 */
139 move.l #(_flashbar_setup-CONFIG_SYS_INT_FLASH_BASE), %a0
140 move.l #(_flashbar_setup_end-CONFIG_SYS_INT_FLASH_BASE), %a1
141 move.l #(CONFIG_SYS_INIT_RAM_ADDR), %a2
Heiko Schocher9acb6262006-04-20 08:42:42 +0200142_copy_flash:
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200143 move.l (%a0)+, (%a2)+
144 cmp.l %a0, %a1
145 bgt.s _copy_flash
146 jmp CONFIG_SYS_INIT_RAM_ADDR
Heiko Schocher9acb6262006-04-20 08:42:42 +0200147
148_flashbar_setup:
149 /* Initialize FLASHBAR: locate internal Flash and validate it */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200150 move.l #(CONFIG_SYS_INT_FLASH_BASE + CONFIG_SYS_INT_FLASH_ENABLE), %d0
TsiChung Liew43d60642008-03-13 14:26:32 -0500151 movec %d0, %FLASHBAR
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200152 jmp _after_flashbar_copy.L /* Force jump to absolute address */
Heiko Schocher9acb6262006-04-20 08:42:42 +0200153_flashbar_setup_end:
154 nop
155_after_flashbar_copy:
156#else
157 /* Setup code to initialize FLASHBAR, if start from external Memory */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200158 move.l #(CONFIG_SYS_INT_FLASH_BASE + CONFIG_SYS_INT_FLASH_ENABLE), %d0
TsiChung Liew4cb4e652008-08-11 15:54:25 +0000159 movec %d0, %FLASHBAR
Wolfgang Denk14d0a022010-10-07 21:51:12 +0200160#endif /* (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) */
Heiko Schocher9acb6262006-04-20 08:42:42 +0200161
162#endif
Wolfgang Denk6741ae92006-09-04 01:03:57 +0200163#endif
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200164 /*
165 * if we come from a pre-loader we have no exception table and
Heiko Schocher9acb6262006-04-20 08:42:42 +0200166 * therefore no VBR to set
167 */
168#if !defined(CONFIG_MONITOR_IS_IN_RAM)
Wolfgang Denk14d0a022010-10-07 21:51:12 +0200169#if defined(CONFIG_M5282) && (CONFIG_SYS_TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200170 move.l #CONFIG_SYS_INT_FLASH_BASE, %d0
TsiChungLiew2acefa72007-10-25 17:09:17 -0500171#else
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200172 move.l #CONFIG_SYS_FLASH_BASE, %d0
TsiChungLiew2acefa72007-10-25 17:09:17 -0500173#endif
Heiko Schocher9acb6262006-04-20 08:42:42 +0200174 movec %d0, %VBR
Marian Balakowicz6f5155a2006-05-09 11:51:51 +0200175#endif
176
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600177#ifdef CONFIG_M5275
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200178 /* set MBAR address + valid flag */
179 move.l #(CONFIG_SYS_MBAR + 1), %d0
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600180 move.l %d0, 0x40000000
181/* movec %d0, %MBAR */
182
183 /* Initialize RAMBAR: locate SRAM and validate it */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200184 move.l #(CONFIG_SYS_INIT_RAM_ADDR + 0x21), %d0
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600185 movec %d0, %RAMBAR1
186#endif
187
TsiChung Liewdd9f0542010-03-11 22:12:53 -0600188 /* initialize general use internal ram */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200189 move.l #0, %d0
190 move.l #(ICACHE_STATUS), %a1 /* icache */
191 move.l #(DCACHE_STATUS), %a2 /* icache */
192 move.l %d0, (%a1)
193 move.l %d0, (%a2)
TsiChung Liewdd9f0542010-03-11 22:12:53 -0600194
angelo@sysam.it5044c9c2016-04-27 21:50:44 +0200195 /* put relocation table address to a5 */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200196 move.l #__got_start, %a5
wdenkbf9e3b32004-02-12 00:47:09 +0000197
angelo@sysam.it5044c9c2016-04-27 21:50:44 +0200198 /* setup stack initially on top of internal static ram */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200199 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE), %sp
angelo@sysam.it5044c9c2016-04-27 21:50:44 +0200200
201 /*
202 * if configured, malloc_f arena will be reserved first,
203 * then (and always) gd struct space will be reserved
204 */
205 move.l %sp, -(%sp)
206 move.l #board_init_f_alloc_reserve, %a1
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200207 jsr (%a1)
angelo@sysam.it5044c9c2016-04-27 21:50:44 +0200208
209 /* update stack and frame-pointers */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200210 move.l %d0, %sp
211 move.l %sp, %fp
angelo@sysam.it5044c9c2016-04-27 21:50:44 +0200212
213 /* initialize reserved area */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200214 move.l %d0, -(%sp)
angelo@sysam.it5044c9c2016-04-27 21:50:44 +0200215 move.l #board_init_f_init_reserve, %a1
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200216 jsr (%a1)
wdenkbf9e3b32004-02-12 00:47:09 +0000217
angelo@sysam.it55ac54c2016-04-12 00:30:59 +0200218 /* run low-level CPU init code (from flash) */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200219 move.l #cpu_init_f, %a1
220 jsr (%a1)
221
angelo@sysam.it55ac54c2016-04-12 00:30:59 +0200222 /* run low-level board init code (from flash) */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200223 clr.l %sp@-
224 move.l #board_init_f, %a1
225 jsr (%a1)
wdenkbf9e3b32004-02-12 00:47:09 +0000226
Marian Balakowicz6f5155a2006-05-09 11:51:51 +0200227 /* board_init_f() does not return */
wdenkbf9e3b32004-02-12 00:47:09 +0000228
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200229/******************************************************************************/
wdenkbf9e3b32004-02-12 00:47:09 +0000230
231/*
232 * void relocate_code (addr_sp, gd, addr_moni)
233 *
234 * This "function" does not return, instead it continues in RAM
235 * after relocating the monitor code.
236 *
237 * r3 = dest
238 * r4 = src
239 * r5 = length in bytes
240 * r6 = cachelinesize
241 */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200242.globl relocate_code
wdenkbf9e3b32004-02-12 00:47:09 +0000243relocate_code:
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200244 link.w %a6,#0
245 move.l 8(%a6), %sp /* set new stack pointer */
wdenkbf9e3b32004-02-12 00:47:09 +0000246
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200247 move.l 12(%a6), %d0 /* Save copy of Global Data pointer */
248 move.l 16(%a6), %a0 /* Save copy of Destination Address */
wdenkbf9e3b32004-02-12 00:47:09 +0000249
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200250 move.l #CONFIG_SYS_MONITOR_BASE, %a1
251 move.l #__init_end, %a2
252 move.l %a0, %a3
wdenkbf9e3b32004-02-12 00:47:09 +0000253 /* copy the code to RAM */
2541:
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200255 move.l (%a1)+, (%a3)+
256 cmp.l %a1,%a2
257 bgt.s 1b
wdenkbf9e3b32004-02-12 00:47:09 +0000258
259/*
260 * We are done. Do not return, instead branch to second part of board
261 * initialization, now running from RAM.
262 */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200263 move.l %a0, %a1
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200264 add.l #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
wdenkbf9e3b32004-02-12 00:47:09 +0000265 jmp (%a1)
266
267in_ram:
268
269clear_bss:
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200270 /*
wdenkbf9e3b32004-02-12 00:47:09 +0000271 * Now clear BSS segment
272 */
273 move.l %a0, %a1
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200274 add.l #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
wdenkbf9e3b32004-02-12 00:47:09 +0000275 move.l %a0, %d1
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200276 add.l #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
wdenkbf9e3b32004-02-12 00:47:09 +00002776:
278 clr.l (%a1)+
279 cmp.l %a1,%d1
280 bgt.s 6b
281
282 /*
283 * fix got table in RAM
284 */
285 move.l %a0, %a1
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200286 add.l #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200287 move.l %a1,%a5 /* fix got pointer register a5 */
wdenkbf9e3b32004-02-12 00:47:09 +0000288
289 move.l %a0, %a2
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200290 add.l #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
wdenkbf9e3b32004-02-12 00:47:09 +0000291
2927:
293 move.l (%a1),%d1
294 sub.l #_start,%d1
295 add.l %a0,%d1
296 move.l %d1,(%a1)+
297 cmp.l %a2, %a1
298 bne 7b
299
300 /* calculate relative jump to board_init_r in ram */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200301 move.l %a0, %a1
302 add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
wdenkbf9e3b32004-02-12 00:47:09 +0000303
304 /* set parameters for board_init_r */
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200305 move.l %a0,-(%sp) /* dest_addr */
306 move.l %d0,-(%sp) /* gd */
Wolfgang Denk14d0a022010-10-07 21:51:12 +0200307#if defined(DEBUG) && (CONFIG_SYS_TEXT_BASE != CONFIG_SYS_INT_FLASH_BASE) && \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200308 defined(CONFIG_SYS_HALT_BEFOR_RAM_JUMP)
TsiChungLiew83ec20b2007-08-15 19:21:21 -0500309 halt
310#endif
wdenkbf9e3b32004-02-12 00:47:09 +0000311 jsr (%a1)
312
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200313/******************************************************************************/
wdenkbf9e3b32004-02-12 00:47:09 +0000314
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200315/* exception code */
316.globl _fault
317_fault:
318 bra _fault
319
320.globl _exc_handler
wdenkbf9e3b32004-02-12 00:47:09 +0000321_exc_handler:
322 SAVE_ALL
323 movel %sp,%sp@-
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200324 bsr exc_handler
wdenkbf9e3b32004-02-12 00:47:09 +0000325 addql #4,%sp
326 RESTORE_ALL
327
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200328.globl _int_handler
wdenkbf9e3b32004-02-12 00:47:09 +0000329_int_handler:
330 SAVE_ALL
331 movel %sp,%sp@-
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200332 bsr int_handler
wdenkbf9e3b32004-02-12 00:47:09 +0000333 addql #4,%sp
334 RESTORE_ALL
335
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200336/******************************************************************************/
wdenkbf9e3b32004-02-12 00:47:09 +0000337
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200338.globl version_string
wdenkbf9e3b32004-02-12 00:47:09 +0000339version_string:
Angelo Dureghello5c928d02016-05-22 00:14:29 +0200340.ascii U_BOOT_VERSION_STRING, "\0"
341.align 4