Skip to content

Commit ca16101

Browse files
dleach02danieldegrasse
authored andcommitted
hal: nxp: Centralize handling of SDK custom sections
SDK defines CodeQuickAccess and DataQuickAccess sections for locating critical items that need faster access. Centralize the handling of these sections instead of doing it per SOC. Fixes #44453 Signed-off-by: David Leach <[email protected]>
1 parent a3d4626 commit ca16101

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

mcux/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,6 @@ include(${CMAKE_CURRENT_LIST_DIR}/hal_nxp.cmake)
102102
enable_language(C ASM)
103103

104104
zephyr_library_sources_ifdef(CONFIG_SOC_LPC54114_M4 mcux-sdk/devices/${MCUX_DEVICE}/gcc/startup_LPC54114_cm4.S)
105+
106+
zephyr_linker_sources(RWDATA quick_access.ld)
107+

mcux/quick_access.ld

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
. = ALIGN(4);
8+
KEEP(*(CodeQuickAccess))
9+
KEEP(*(DataQuickAccess))

0 commit comments

Comments
 (0)