Skip to content

Commit 11c3fe4

Browse files
CopilotBernardXiong
andcommitted
[risc-v][common64] Make rt_hw_cpu_shutdown weak to fix multiple definition error
Co-authored-by: BernardXiong <[email protected]>
1 parent 7095d1b commit 11c3fe4

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)