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>
19 moveml %d0-%d7/%a0-%a6,%sp@;
22 moveml %sp@,%d0-%d7/%a0-%a6; \
30 * These vectors are to catch any un-intended traps.
47 /* TRAP #0 - #15 */
110 /* initialize general use internal ram */
120 /* setup stack initially on top of internal static ram */
127 move.l %sp, -(%sp)
131 /* update stack and frame-pointers */
136 move.l %d0, -(%sp)
140 /* run low-level CPU init code (from flash) */
144 /* run low-level board init code (from flash) */
145 clr.l %sp@-
156 * This "function" does not return, instead it continues in RAM
157 * after relocating the monitor code.
176 /* copy the code to RAM */
184 * initialization, now running from RAM.
187 add.l #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
197 add.l #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
199 add.l #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
206 * fix got table in RAM
209 add.l #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
213 add.l #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
223 /* calculate relative jump to board_init_r in ram */
225 add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
228 move.l %a0,-(%sp) /* dest_addr */
229 move.l %d0,-(%sp) /* gd */
234 /* exception code */
242 movel %sp,%sp@-
250 movel %sp,%sp@-