This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d658b1d2e2807762d8e813b7999d77898a6cc2e5 Author: hujun5 <[email protected]> AuthorDate: Tue Aug 5 15:59:33 2025 +0800 arm64: fix typo fix typo Signed-off-by: hujun5 <[email protected]> --- arch/arm64/src/common/arm64_addrenv_mpu.c | 10 +++++----- arch/arm64/src/common/arm64_mpu.c | 3 ++- arch/arm64/src/common/arm64_mpu.h | 4 ++-- arch/arm64/src/fvp-v8r/fvp_boot.c | 4 ++-- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/arch/arm64/src/common/arm64_addrenv_mpu.c b/arch/arm64/src/common/arm64_addrenv_mpu.c index b602fa4ead9..7546c41af1d 100644 --- a/arch/arm64/src/common/arm64_addrenv_mpu.c +++ b/arch/arm64/src/common/arm64_addrenv_mpu.c @@ -319,15 +319,15 @@ static void mpu_init_heap_region(void) * The following diagram represent the typical layout: * * +-------------+ - * | kernel RW | Backgroud region + * | kernel RW | Background region * +-------------+ * | User RW | User heap/stack * +-------------+ - * | kernel RW | Backgroud region + * | kernel RW | Background region * +-------------+ * | User RW | User stack/heap * +-------------+ - * | kernel RW | Backgroud region + * | kernel RW | Background region * +-------------+ * Input Parameters: * tcb @@ -406,11 +406,11 @@ void mpu_update(struct tcb_s *tcb) * The following diagram represent the typical layout: * * +-------------+ - * | kernel RW | Backgroud region + * | kernel RW | Background region * +-------------+ * | User RW | User heap * +-------------+ - * | kernel RW | Backgroud region + * | kernel RW | Background region * +-------------+ * * Input Parameters: diff --git a/arch/arm64/src/common/arm64_mpu.c b/arch/arm64/src/common/arm64_mpu.c index ebba4490b7b..752615059a2 100644 --- a/arch/arm64/src/common/arm64_mpu.c +++ b/arch/arm64/src/common/arm64_mpu.c @@ -352,6 +352,7 @@ unsigned int mpu_configure_region(uintptr_t base, size_t size, uint32_t flags1, uint32_t flags2) { unsigned int region = mpu_allocregion(); + mpu_modify_region(region, base, size, flags1, flags2); return region; } @@ -450,7 +451,7 @@ void arm64_mpu_init(bool is_primary_core) mpu_init(); - arm64_mpu_init_regiions(); + arm64_mpu_init_regions(); arm64_mpu_enable(); } diff --git a/arch/arm64/src/common/arm64_mpu.h b/arch/arm64/src/common/arm64_mpu.h index cfa6f4f440f..83e0742c2c8 100644 --- a/arch/arm64/src/common/arm64_mpu.h +++ b/arch/arm64/src/common/arm64_mpu.h @@ -482,11 +482,11 @@ unsigned int mpu_configure_region(uintptr_t base, size_t size, void arm64_mpu_init(bool is_primary_core); /**************************************************************************** - * Name: arm64_mpu_init_regiions + * Name: arm64_mpu_init_regions * ****************************************************************************/ -void arm64_mpu_init_regiions(void); +void arm64_mpu_init_regions(void); #endif /* __ASSEMBLY__ */ diff --git a/arch/arm64/src/fvp-v8r/fvp_boot.c b/arch/arm64/src/fvp-v8r/fvp_boot.c index 9f767ff856c..56900b8e42b 100644 --- a/arch/arm64/src/fvp-v8r/fvp_boot.c +++ b/arch/arm64/src/fvp-v8r/fvp_boot.c @@ -153,11 +153,11 @@ void arm64_chip_boot(void) } /**************************************************************************** - * Name: arm64_mpu_init_regiions + * Name: arm64_mpu_init_regions * ****************************************************************************/ -void arm64_mpu_init_regiions(void) +void arm64_mpu_init_regions(void) { #ifdef CONFIG_BUILD_PROTECTED uintptr_t ubase;
