aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2024-01-22 14:48:28 +0100
committerMikael Olsson <mikael.olsson@arm.com>2024-01-22 15:06:26 +0100
commitad5b6f2a6ca5f9ed1312224767490073315d68b9 (patch)
tree9de1190a8c808275712724a0d58859b3e9041e38 /targets
parent36638b51327efcb77951c2ed293ab1032d079e67 (diff)
downloadethos-u-core-platform-ad5b6f2a6ca5f9ed1312224767490073315d68b9.tar.gz
Change threadx_demo to use ThreadX lib init file
Instead of using its own low level initialization file for ThreadX, the ThreadX demo has been changed to use the one provided by the ThreadX library. The initialization file from the ThreadX library, assumes some specific symbol names are present in the linker script so the script for the Corstone-300 platform, which is the only one that currently supports the ThreadX demo, has been updated accordingly. To still be able to use the HardFault_Handler from the platform target, the handler provided by the ThreadX library is marked as a weak symbol before linking. Change-Id: I757b74bc30e295bc1f7126fc5d9330e381d7a886 Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'targets')
-rw-r--r--targets/corstone-300/platform.ld5
1 files changed, 4 insertions, 1 deletions
diff --git a/targets/corstone-300/platform.ld b/targets/corstone-300/platform.ld
index 8d77329..f5a4c1d 100644
--- a/targets/corstone-300/platform.ld
+++ b/targets/corstone-300/platform.ld
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: Copyright 2009-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
+ * SPDX-FileCopyrightText: Copyright 2009-2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -134,6 +134,7 @@ SECTIONS
{
.text :
{
+ _vectors = .;
KEEP(*(.vectors))
*(.text*)
@@ -323,6 +324,8 @@ SECTIONS
} > DTCM :null
PROVIDE(__stack = __StackTop);
+ __RAM_segment_used_end__ = .;
+
/* Check if data + heap + stack exceeds DTCM limit */
ASSERT(__StackLimit >= __HeapLimit, "region DTCM overflowed with stack")
}