xiaoxiang781216 commented on code in PR #16332: URL: https://github.com/apache/nuttx/pull/16332#discussion_r2076996895
########## tools/imx9/Config.mk: ########## @@ -47,6 +47,13 @@ ifeq ($(CONFIG_IMX9_BOOTLOADER),y) FCB_TOOL_PATH = $(BASE_PATH)$(FCB_TOOL) EXTRAFLAGS += -mstrict-align +# If we don't use MMU all memory is treated as device memory and can't handle alignment faults. +# Some compiler builtins like memset() can introduce alignment faults, so we need to disable them +# if we don't use the MMU. +ifneq ($(CONFIG_ARCH_USE_MMU),y) Review Comment: let's move to common places for both cmake and makefile under arch/arm64/ ########## arch/arm64/src/imx9/imx9_boot.c: ########## @@ -142,9 +142,11 @@ void arm64_chip_boot(void) #endif #endif +#if defined(CONFIG_ARCH_USE_MMU) Review Comment: `#ifdef CONFIG_ARCH_USE_MMU` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org