summaryrefslogtreecommitdiff
path: root/libcpu/aarch64
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-08-07 12:42:10 -0400
committerMeco Man <[email protected]>2023-08-08 22:34:25 -0400
commitc6a2f5b7bdee378cc868ee9284e760ebbdf635f0 (patch)
treecde35e55f90e6a0b12a5796734a9b75fbdc65d0a /libcpu/aarch64
parentcb810dfe750dab6a53a8c20d83f082e0a12ab024 (diff)
rt_hw_cpu_shutdown: implement default weak function
and remvoe duplicated default functions in each cpu/bsp level
Diffstat (limited to 'libcpu/aarch64')
-rw-r--r--libcpu/aarch64/common/cpu.c2
-rw-r--r--libcpu/aarch64/common/cpu.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/libcpu/aarch64/common/cpu.c b/libcpu/aarch64/common/cpu.c
index 8953b64556..7aeb59f634 100644
--- a/libcpu/aarch64/common/cpu.c
+++ b/libcpu/aarch64/common/cpu.c
@@ -357,7 +357,7 @@ const char *rt_hw_cpu_arch(void)
}
/** shutdown CPU */
-rt_weak void rt_hw_cpu_shutdown()
+void rt_hw_cpu_shutdown(void)
{
rt_uint32_t level;
rt_kprintf("shutdown...\n");
diff --git a/libcpu/aarch64/common/cpu.h b/libcpu/aarch64/common/cpu.h
index 28044bb185..e3efaec485 100644
--- a/libcpu/aarch64/common/cpu.h
+++ b/libcpu/aarch64/common/cpu.h
@@ -56,8 +56,6 @@ extern struct cpu_ops_t cpu_ops_spin_tbl;
#endif /* RT_USING_SMP */
-extern void rt_hw_cpu_shutdown(void);
-
extern void (*system_off)(void);
#endif /* __RT_HW_CPU_H__ */ \ No newline at end of file