mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00

In preparation for RPi 5 support, which will reuse most of the RPi 4 logic except for DTB patching. Change-Id: I6f6ef96933711a1798757a3389adae1b8ee3de6c Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
37 lines
778 B
ArmAsm
37 lines
778 B
ArmAsm
/*
|
|
* Copyright (c) 2019-2024, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/*
|
|
* armstub8.bin header to let the GPU firmware recognise this code.
|
|
* It will then write the load address of the kernel image and the DT
|
|
* after the header magic in RAM, so we can read those addresses at runtime.
|
|
*/
|
|
|
|
.text
|
|
b armstub8_end
|
|
|
|
.global stub_magic
|
|
.global dtb_ptr32
|
|
.global kernel_entry32
|
|
|
|
.org 0xf0
|
|
armstub8:
|
|
stub_magic:
|
|
.word 0x5afe570b
|
|
stub_version:
|
|
.word 0
|
|
dtb_ptr32:
|
|
.word 0x0
|
|
kernel_entry32:
|
|
.word 0x0
|
|
|
|
/*
|
|
* Technically an offset of 0x100 would suffice, but the follow-up code
|
|
* (bl31_entrypoint.S at BL31_BASE) needs to be page aligned, so pad here
|
|
* till the end of the first 4K page.
|
|
*/
|
|
.org 0x1000
|
|
armstub8_end:
|