arm64: exclude mpu from sanitize for SMP mode

CPU0 boot -> mm_init() -> sannitize on -> boot other CPUs
CPU1 boot -> mpu_init -> error

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2024-03-25 16:09:14 +08:00
committed by Xiang Xiao
parent e9617583bc
commit 26dc3b297a
+2
View File
@@ -76,6 +76,8 @@ endif
ifeq ($(CONFIG_ARCH_HAVE_MPU),y)
CMN_CSRCS += arm64_mpu.c
common/arm64_mpu.c_CFLAGS += -fno-sanitize=kernel-hwaddress
common/arm64_mpu.c_CFLAGS += -fno-sanitize=kernel-address
endif
ifeq ($(CONFIG_ARM64_PSCI),y)