mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 00:34:10 +08:00
d1be769038
Add no_builtin for memcpy/memset to the startup code of boards with CONFIG_ARCH_RAMFUNCS, because certain compilers call memcpy/memset instead of the explicit for loop. This will cause a crash if memcpy/memset are mapped to RAM because the function that copies them to RAM is called later, resulting in undefined code being executed. Signed-off-by: Alexander Lerach <alexander@auterion.com> arch/arm: Use decorator for entry point Use a decorator that contains the required no_builtin instead of adding them explicitly to the startup code. This way it will be easier to maintain them in the future when changes to the no_builtin used are required. Signed-off-by: Alexander Lerach <alexander@auterion.com> arch/arm: Rename decorator Rename the entry point decorator used for the startup code to a less explicit name. This way the style is more consistent with other decorators. Signed-off-by: Alexander Lerach <alexander@auterion.com>