Skip to content

Commit 570cc03

Browse files
[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]>
1 parent f4566f1 commit 570cc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcpu/risc-v/common64/cpuport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void rt_hw_context_switch_interrupt(void *context, rt_ubase_t from, rt_ubase_t t
158158
#endif /* end of RT_USING_SMP */
159159

160160
/** shutdown CPU */
161-
void rt_hw_cpu_shutdown(void)
161+
rt_weak void rt_hw_cpu_shutdown(void)
162162
{
163163
rt_uint32_t level;
164164
rt_kprintf("shutdown...\n");

0 commit comments

Comments
 (0)