mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

BL2_BASE, BL31_BASE, and BL32_BASE are defined in platform_def.h, that is, determined at link-time. On the other hand, BL2_END, BL31_END, and BL32_END are derived from the symbols produced by the linker scripts. So, they are fixed-up at run-time if ENABLE_PIE is enabled. To make it work in a position-indepenent manner, use BL_CODE_BASE and BL_END, both of which are relocatable. Change-Id: Ic179a7c60eb64c5f3024b178690b3ac7cbd7521b Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
27 lines
443 B
C
27 lines
443 B
C
/*
|
|
* Copyright (c) 2017-2020, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <platform_def.h>
|
|
|
|
#include <common/bl_common.h>
|
|
#include <lib/xlat_tables/xlat_mmu_helpers.h>
|
|
|
|
#include "../uniphier.h"
|
|
|
|
void tsp_early_platform_setup(void)
|
|
{
|
|
uniphier_console_setup();
|
|
}
|
|
|
|
void tsp_platform_setup(void)
|
|
{
|
|
}
|
|
|
|
void tsp_plat_arch_setup(void)
|
|
{
|
|
uniphier_mmap_setup();
|
|
enable_mmu_el1(0);
|
|
}
|