Lines Matching +full:ram +full:- +full:code
1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Based on code from Bernhard Kuhn <bkuhn@metrowerks.com>
7 #include <asm-offsets.h>
19 moveml %d0-%d7/%a0-%a6,%sp@; \
22 moveml %sp@,%d0-%d7/%a0-%a6; \
26 /* If we come from a pre-loader we don't need an initial exception
35 * These vectors are to catch any un-intended traps.
40 .long _start - CONFIG_SYS_TEXT_BASE
136 * Setup code in SRAM to initialize FLASHBAR,
139 move.l #(_flashbar_setup-CONFIG_SYS_INT_FLASH_BASE), %a0
140 move.l #(_flashbar_setup_end-CONFIG_SYS_INT_FLASH_BASE), %a1
157 /* Setup code to initialize FLASHBAR, if start from external Memory */
165 * if we come from a pre-loader we have no exception table and
188 /* initialize general use internal ram */
198 /* setup stack initially on top of internal static ram */
205 move.l %sp, -(%sp)
209 /* update stack and frame-pointers */
214 move.l %d0, -(%sp)
218 /* run low-level CPU init code (from flash) */
222 /* run low-level board init code (from flash) */
223 clr.l %sp@-
234 * This "function" does not return, instead it continues in RAM
235 * after relocating the monitor code.
253 /* copy the code to RAM */
261 * initialization, now running from RAM.
264 add.l #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
274 add.l #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
276 add.l #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
283 * fix got table in RAM
286 add.l #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
290 add.l #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
300 /* calculate relative jump to board_init_r in ram */
302 add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
305 move.l %a0,-(%sp) /* dest_addr */
306 move.l %d0,-(%sp) /* gd */
315 /* exception code */
323 movel %sp,%sp@-
331 movel %sp,%sp@-