Lines Matching +full:ram +full:- +full:code
3 * Based on code from Bernhard Kuhn <bkuhn@metrowerks.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm-offsets.h>
20 moveml %d0-%d7/%a0-%a6,%sp@
24 moveml %sp@,%d0-%d7/%a0-%a6;
29 /* If we come from a pre-loader we don't need an initial exception
38 * These vectors are to catch any un-intended traps.
45 .long _start - CONFIG_SYS_TEXT_BASE
111 * if we come from a pre-loader we have no exception table and
119 /* initialize general use internal ram */
129 /* setup stack initially on top of internal static ram */
136 move.l %sp, -(%sp)
139 /* update stack and frame-pointers */
144 move.l %d0, -(%sp)
147 /* run low-level CPU init code (from flash) */
150 /* run low-level board init code (from flash) */
151 clr.l %sp@-
161 * This "function" does not return, instead it continues in RAM
162 * after relocating the monitor code.
175 /* copy the code to RAM */
183 * initialization, now running from RAM.
186 add.l #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
196 add.l #(_sbss - CONFIG_SYS_MONITOR_BASE), %a1
198 add.l #(_ebss - CONFIG_SYS_MONITOR_BASE), %d1
205 * fix got table in RAM
208 add.l #(__got_start - CONFIG_SYS_MONITOR_BASE), %a1
214 add.l #(__got_end - CONFIG_SYS_MONITOR_BASE), %a2
224 /* calculate relative jump to board_init_r in ram */
226 add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
229 move.l %a0,-(%sp) /* dest_addr */
230 move.l %d0,-(%sp) /* gd */
239 /* exception code */
247 movel %sp,%sp@-
255 movel %sp,%sp@-
265 .ascii " (", U_BOOT_DATE, " - ", U_BOOT_TIME, ")"