2 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
4 * SPDX-License-Identifier: GPL-2.0+
7 #include <asm-offsets.h>
9 #include <linux/linkage.h>
10 #include <asm/arcregs.h>
13 /* Setup interrupt vector base that matches "__text_start" */
14 sr __ivt_start, [ARC_AUX_INTR_VEC_BASE]
16 /* Setup stack- and frame-pointers */
17 mov %sp, CONFIG_SYS_INIT_SP_ADDR
20 /* Unconditionally disable caches */
25 /* Zero the one and only argument of "board_init_f" */
31 * void board_init_f_r_trampoline(stack-pointer address)
33 * This "function" does not return, instead it continues in RAM
34 * after relocating the monitor code.
36 * r0 = new stack-pointer
38 ENTRY(board_init_f_r_trampoline)
39 /* Set up the stack- and frame-pointers */
43 /* Update position of intterupt vector table */
44 lr %r0, [ARC_AUX_INTR_VEC_BASE]
45 ld %r1, [%r25, GD_RELOC_OFF]
47 sr %r0, [ARC_AUX_INTR_VEC_BASE]
49 /* Re-enter U-Boot by calling board_init_f_r */
51 ENDPROC(board_init_f_r_trampoline)