summaryrefslogtreecommitdiffstats
path: root/plat/arm/board/arm_fpga/rom_trampoline.S
blob: cd66c7927e73d691e1ba92be44712beea8c9606b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2020, ARM Limited. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 *
 * The Arm Ltd. FPGA images start execution at address 0x0, which is
 * mapped at an (emulated) ROM image. The payload uploader can write to
 * this memory, but write access by the CPU cores is prohibited.
 *
 * Provide a simple trampoline to start BL31 execution at the actual
 * load address. We put the DTB address in x0, so any code in DRAM could
 * make use of that information (not yet used in BL31 right now).
 */

#include <asm_macros.S>
#include <common/bl_common.ld.h>

.text
.global _start

_start:
	mov_imm	x1, BL31_BASE			/* beginning of DRAM */
	mov_imm	x0, FPGA_PRELOADED_DTB_BASE
	br	x1