diff options
| author | Copilot <[email protected]> | 2026-01-12 17:15:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-12 17:15:42 +0800 |
| commit | 570cc035793aff077ca473a41994a452889b024e (patch) | |
| tree | a18d82ac1f4e844ccb2e09170e65df9fa9a29149 | |
| parent | f4566f14dc926c580c8fc81540b7805f57eaf201 (diff) | |
[risc-v][common64] Make rt_hw_cpu_shutdown weak to resolve multiple definition with RT_USING_DM (#11100)
* Initial plan
* [risc-v][common64] Make rt_hw_cpu_shutdown weak to fix multiple definition error
Co-authored-by: BernardXiong <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: BernardXiong <[email protected]>
| -rw-r--r-- | libcpu/risc-v/common64/cpuport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/common64/cpuport.c b/libcpu/risc-v/common64/cpuport.c index 440195eb3a..b33da61a38 100644 --- a/libcpu/risc-v/common64/cpuport.c +++ b/libcpu/risc-v/common64/cpuport.c @@ -158,7 +158,7 @@ void rt_hw_context_switch_interrupt(void *context, rt_ubase_t from, rt_ubase_t t #endif /* end of RT_USING_SMP */ /** shutdown CPU */ -void rt_hw_cpu_shutdown(void) +rt_weak void rt_hw_cpu_shutdown(void) { rt_uint32_t level; rt_kprintf("shutdown...\n"); |
