diff options
| author | 张世争 <[email protected]> | 2020-11-20 08:49:51 +0800 |
|---|---|---|
| committer | 张世争 <[email protected]> | 2020-11-20 08:49:51 +0800 |
| commit | 355f8dd95cddcf784eb60bfea0a8d6ebf130fdf3 (patch) | |
| tree | a901cfdc41cc8dc3df0ebd3c96e97725051f679f /libcpu/risc-v | |
| parent | 9dc0bbb814dff797eabb1cbcc133410c75471cd0 (diff) | |
[libcpu][update]重启与关机函数:rt_hw_cpu_shutdown、rt_hw_cpu_reset,补充WEAK属性
Diffstat (limited to 'libcpu/risc-v')
| -rw-r--r-- | libcpu/risc-v/common/cpuport.c | 2 | ||||
| -rw-r--r-- | libcpu/risc-v/nuclei/cpuport.c | 2 | ||||
| -rw-r--r-- | libcpu/risc-v/t-head/e906/cpuport.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libcpu/risc-v/common/cpuport.c b/libcpu/risc-v/common/cpuport.c index a44dc40f79..5da3e85645 100644 --- a/libcpu/risc-v/common/cpuport.c +++ b/libcpu/risc-v/common/cpuport.c @@ -116,7 +116,7 @@ void rt_hw_context_switch_interrupt(rt_ubase_t from, rt_ubase_t to) #endif /* end of RT_USING_SMP */ /** shutdown CPU */ -void rt_hw_cpu_shutdown() +RT_WEAK void rt_hw_cpu_shutdown() { rt_uint32_t level; rt_kprintf("shutdown...\n"); diff --git a/libcpu/risc-v/nuclei/cpuport.c b/libcpu/risc-v/nuclei/cpuport.c index e456438f70..717e9bb1c7 100644 --- a/libcpu/risc-v/nuclei/cpuport.c +++ b/libcpu/risc-v/nuclei/cpuport.c @@ -152,7 +152,7 @@ void rt_hw_context_switch(rt_ubase_t from, rt_ubase_t to) * @brief shutdown CPU * */ -void rt_hw_cpu_shutdown() +RT_WEAK void rt_hw_cpu_shutdown() { rt_uint32_t level; rt_kprintf("shutdown...\n"); diff --git a/libcpu/risc-v/t-head/e906/cpuport.c b/libcpu/risc-v/t-head/e906/cpuport.c index 5597aa237a..998bfdc340 100644 --- a/libcpu/risc-v/t-head/e906/cpuport.c +++ b/libcpu/risc-v/t-head/e906/cpuport.c @@ -157,7 +157,7 @@ void rt_hw_interrupt_enable(rt_base_t level) } /** shutdown CPU */ -void rt_hw_cpu_shutdown() +RT_WEAK void rt_hw_cpu_shutdown() { rt_uint32_t level; rt_kprintf("shutdown...\n"); |
