diff options
| author | Shell <[email protected]> | 2024-03-28 23:42:56 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-04-19 15:09:47 +0800 |
| commit | 17d22ad408c5c5bbabd9e895500f7a5835f1a44b (patch) | |
| tree | 147740020bd1c8ab3188a84773a314b6ccd325d6 /libcpu | |
| parent | da37ea86c8337e9099d61abf0c4bf87e3b192b1b (diff) | |
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <[email protected]>
Signed-off-by: Shell <[email protected]>
Co-authored-by: xqyjlj <[email protected]>
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/aarch64/common/backtrace.c | 2 | ||||
| -rw-r--r-- | libcpu/aarch64/common/mmu.c | 2 | ||||
| -rw-r--r-- | libcpu/arm/cortex-a/pmu.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/libcpu/aarch64/common/backtrace.c b/libcpu/aarch64/common/backtrace.c index 440d02d6fb..0365ec71e4 100644 --- a/libcpu/aarch64/common/backtrace.c +++ b/libcpu/aarch64/common/backtrace.c @@ -85,7 +85,7 @@ rt_err_t rt_hw_backtrace_frame_unwind(rt_thread_t thread, struct rt_hw_backtrace if (fp && !((long)fp & 0x7)) { #ifdef RT_USING_SMART - if (thread && thread->lwp) + if (thread && thread->lwp && rt_scheduler_is_available()) { rt_lwp_t lwp = thread->lwp; void *this_lwp = lwp_self(); diff --git a/libcpu/aarch64/common/mmu.c b/libcpu/aarch64/common/mmu.c index 7ccdcb0f5a..e9f0f4e999 100644 --- a/libcpu/aarch64/common/mmu.c +++ b/libcpu/aarch64/common/mmu.c @@ -602,7 +602,7 @@ static int _map_single_page_2M(unsigned long *lv0_tbl, unsigned long va, return 0; } -void *rt_hw_mmu_tbl_get() +void *rt_hw_mmu_tbl_get(void) { uintptr_t tbl; __asm__ volatile("MRS %0, TTBR0_EL1" : "=r"(tbl)); diff --git a/libcpu/arm/cortex-a/pmu.c b/libcpu/arm/cortex-a/pmu.c index 4b62849a1a..68abed4e19 100644 --- a/libcpu/arm/cortex-a/pmu.c +++ b/libcpu/arm/cortex-a/pmu.c @@ -21,4 +21,5 @@ void rt_hw_pmu_dump_feature(void) LOG_D("ARM PMU Implementor: %c, ID code: %02x, %d counters\n", reg >> 24, (reg >> 16) & 0xff, (reg >> 11) & 0x1f); RT_ASSERT(ARM_PMU_CNTER_NR == ((reg >> 11) & 0x1f)); + RT_UNUSED(reg); } |
