xtensa: fix compile miss file

comiple xtensa_mpu.c

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2023-05-31 18:29:39 +08:00 committed by Xiang Xiao
parent 79f6efb977
commit 452211586e
2 changed files with 10 additions and 5 deletions

View File

@ -27,11 +27,12 @@ HEAD_ASRC += xtensa_int_handlers.S xtensa_user_handler.S
CMN_ASRCS = xtensa_context.S xtensa_cpuint.S xtensa_panic.S
CMN_CSRCS = xtensa_assert.c xtensa_cpenable.c xtensa_cpuinfo.c
CMN_CSRCS += xtensa_createstack.c xtensa_exit.c xtensa_getintstack.c
CMN_CSRCS += xtensa_initialize.c xtensa_initialstate.c xtensa_irqdispatch.c
CMN_CSRCS += xtensa_lowputs.c xtensa_modifyreg8.c xtensa_modifyreg16.c
CMN_CSRCS += xtensa_modifyreg32.c xtensa_mdelay.c xtensa_nputs.c xtensa_perf.c
CMN_CSRCS = xtensa_assert.c xtensa_cache.c xtensa_cpenable.c
CMN_CSRCS += xtensa_cpuinfo.c xtensa_createstack.c xtensa_exit.c
CMN_CSRCS += xtensa_getintstack.c xtensa_initialize.c xtensa_initialstate.c
CMN_CSRCS += xtensa_irqdispatch.c xtensa_lowputs.c xtensa_mdelay.c
CMN_CSRCS += xtensa_modifyreg8.c xtensa_modifyreg16.c xtensa_modifyreg32.c
CMN_CSRCS += xtensa_mpu.c xtensa_nputs.c xtensa_oneshot.c xtensa_perf.c
CMN_CSRCS += xtensa_releasestack.c xtensa_registerdump.c xtensa_sigdeliver.c
CMN_CSRCS += xtensa_switchcontext.c xtensa_swint.c xtensa_stackframe.c
CMN_CSRCS += xtensa_saveusercontext.c xtensa_schedsigaction.c xtensa_udelay.c

View File

@ -26,6 +26,8 @@
#include "mpu.h"
#if defined(XCHAL_MPU_ENTRIES) && XCHAL_MPU_ENTRIES > 0
/****************************************************************************
* Private Data
****************************************************************************/
@ -136,3 +138,5 @@ void mpu_configure_region(uintptr_t base, size_t size,
xtensa_mpu_base[region] = base;
}
#endif /* defined(XCHAL_MPU_ENTRIES) && XCHAL_MPU_ENTRIES > 0 */