From 1c2daeafdcf2fd008a6fd548b939b04de3a9faa1 Mon Sep 17 00:00:00 2001 From: wangxiaoyao Date: Mon, 20 Feb 2023 16:38:46 +0800 Subject: [PATCH] [fix] typo --- components/libc/compilers/common/include/sys/signal.h | 4 ++-- libcpu/aarch64/common/mmu.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/libc/compilers/common/include/sys/signal.h b/components/libc/compilers/common/include/sys/signal.h index 8e67ae9ae1..b6990e1b55 100644 --- a/components/libc/compilers/common/include/sys/signal.h +++ b/components/libc/compilers/common/include/sys/signal.h @@ -17,11 +17,11 @@ extern "C" { #endif /* __cplusplus */ #ifdef RT_USING_MUSLLIBC -/* this is require for musl */ +/* this is required for musl */ #ifndef _POSIX_SOURCE #define _POSIX_SOURCE #include -/* limit influenced of _POSIX_SOURCE */ +/* limiting influence of _POSIX_SOURCE */ #undef _POSIX_SOURCE #else /* ndef _POSIX_SOURCE */ diff --git a/libcpu/aarch64/common/mmu.c b/libcpu/aarch64/common/mmu.c index e13045c773..345396e8cf 100644 --- a/libcpu/aarch64/common/mmu.c +++ b/libcpu/aarch64/common/mmu.c @@ -207,6 +207,7 @@ void *rt_hw_mmu_map(rt_aspace_t aspace, void *v_addr, void *p_addr, size_t size, MM_PGTBL_LOCK(aspace); _kenrel_unmap_4K(aspace->page_table, (void *)unmap_va); MM_PGTBL_UNLOCK(aspace); + unmap_va += ARCH_PAGE_SIZE; } break; }