Skip to content

Conversation

mmahadevan108
Copy link
Contributor

@mmahadevan108 mmahadevan108 commented Oct 10, 2025

This change makes quickaccess section inaccessible for Cortex A CPU's

dleach02
dleach02 previously approved these changes Oct 10, 2025
zephyr_linker_sources_ifdef(CONFIG_ARCH_HAS_RAMFUNC_SUPPORT
RAMFUNC_SECTION
${ZEPHYR_CURRENT_MODULE_DIR}/mcux/quick_access_code.ld
)
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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]>
Copy link

@mmahadevan108 mmahadevan108 changed the title Revert "modules: hal_nxp: disable quick access" modules: hal_nxp: disable access to quickaccess section for Cortex A CPU's Oct 15, 2025
@jhedberg jhedberg merged commit 2b0befc into zephyrproject-rtos:main Oct 16, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants