diff options
author | Tamas Ban <tamas.ban@arm.com> | 2020-10-19 12:05:44 +0100 |
---|---|---|
committer | Tamas Ban <tamas.ban@arm.com> | 2020-11-02 11:11:25 +0000 |
commit | c0d1499678bd549ebed648eb8f0682e7abb67ce1 (patch) | |
tree | 58b2a9eb5436e2e08fad63e9a54fb39549af2194 /platform/include | |
parent | ad442adb3e1a81183638b799992595f70932cd0e (diff) | |
download | trusted-firmware-m-c0d1499678bd549ebed648eb8f0682e7abb67ce1.tar.gz |
Platform: Enable multiple data and bss section support
Enable the multiple data section copy and multiple bss
section clear on platform level. It always enabled in
case of secure firmware because there are data and bss
section per service.
In case of bootloader, the following platforms need this feature.
On Musca-B1 two section must be copied to SRAM by startup code:
- data section
- eFlash driver, it is executed from SRAM.
On Musca-A the entire bootloader copied and executed from SRAM
plus the data section also copied.
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: Ibf91a656d5897b66bfbb57e6d6c61b08347b3a65
Diffstat (limited to 'platform/include')
-rw-r--r-- | platform/include/tfm_plat_config.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/include/tfm_plat_config.h b/platform/include/tfm_plat_config.h new file mode 100644 index 0000000000..448964d3d6 --- /dev/null +++ b/platform/include/tfm_plat_config.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2020, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + */ +#ifndef __TFM_PLAT_CONFIG_H__ +#define __TFM_PLAT_CONFIG_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +/* Enable the multiple data section copy and bss section clear feature + * in GNUARM low level start-up. + */ +#define __STARTUP_COPY_MULTIPLE +#define __STARTUP_CLEAR_BSS_MULTIPLE + +#ifdef __cplusplus +} +#endif + +#endif /* __TFM_PLAT_CONFIG_H__ */
\ No newline at end of file |