-
Notifications
You must be signed in to change notification settings - Fork 8.1k
modules: hal_nxp: disable access to quickaccess section for Cortex A CPU's #97371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules: hal_nxp: disable access to quickaccess section for Cortex A CPU's #97371
Conversation
dbe94c9
to
c3ac2c1
Compare
modules/hal_nxp/mcux/CMakeLists.txt
Outdated
zephyr_linker_sources_ifdef(CONFIG_ARCH_HAS_RAMFUNC_SUPPORT | ||
RAMFUNC_SECTION | ||
${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_code.ld | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about change to the following code:
if(CONFIG_CPU_CORTEX_A)
zephyr_compile_definitions(FSL_SDK_DRIVER_QUICK_ACCESS_DISABLE)
else() # CONFIG_CPU_CORTEX_A
zephyr_linker_sources(RWDATA
${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_data.ld
)
zephyr_linker_sources_ifdef(CONFIG_ARCH_HAS_RAMFUNC_SUPPORT
RAMFUNC_SECTION
${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_code.ld
)
endif() # CONFIG_CPU_CORTEX_A
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed for Cortex-A?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cortex-A core all the code and data are in DDR memory, and there is no quickaccess section on Cortex-A core's link script.
Not needed on Cortex-A as all code and data is in DDR memory and there is no quickaccess section in the Cortex-A linker script. Signed-off-by: Mahesh Mahadevan <[email protected]>
c3ac2c1
to
4017696
Compare
|
This change makes quickaccess section inaccessible for Cortex A CPU's