Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SummerGao.
rt-thread
提交
355f8dd9
R
rt-thread
项目概览
SummerGao.
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
355f8dd9
编写于
11月 20, 2020
作者:
张
张世争
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libcpu][update]重启与关机函数:rt_hw_cpu_shutdown、rt_hw_cpu_reset,补充WEAK属性
上级
9dc0bbb8
变更
30
隐藏空白更改
内联
并排
Showing
30 changed file
with
45 addition
and
45 deletion
+45
-45
libcpu/aarch64/common/cpu.c
libcpu/aarch64/common/cpu.c
+1
-1
libcpu/arc/em/cpuport.c
libcpu/arc/em/cpuport.c
+1
-1
libcpu/arm/AT91SAM7S/cpu.c
libcpu/arm/AT91SAM7S/cpu.c
+2
-2
libcpu/arm/AT91SAM7X/cpu.c
libcpu/arm/AT91SAM7X/cpu.c
+2
-2
libcpu/arm/am335x/cpu.c
libcpu/arm/am335x/cpu.c
+1
-1
libcpu/arm/arm926/cpuport.c
libcpu/arm/arm926/cpuport.c
+2
-2
libcpu/arm/armv6/cpuport.c
libcpu/arm/armv6/cpuport.c
+2
-2
libcpu/arm/cortex-a/cpu.c
libcpu/arm/cortex-a/cpu.c
+1
-1
libcpu/arm/cortex-m3/cpuport.c
libcpu/arm/cortex-m3/cpuport.c
+1
-1
libcpu/arm/cortex-m33/cpuport.c
libcpu/arm/cortex-m33/cpuport.c
+1
-1
libcpu/arm/cortex-m4/cpuport.c
libcpu/arm/cortex-m4/cpuport.c
+1
-1
libcpu/arm/cortex-m7/cpuport.c
libcpu/arm/cortex-m7/cpuport.c
+1
-1
libcpu/arm/cortex-r4/cpu.c
libcpu/arm/cortex-r4/cpu.c
+2
-2
libcpu/arm/dm36x/cpuport.c
libcpu/arm/dm36x/cpuport.c
+2
-2
libcpu/arm/lpc214x/cpuport.c
libcpu/arm/lpc214x/cpuport.c
+2
-2
libcpu/arm/lpc24xx/cpu.c
libcpu/arm/lpc24xx/cpu.c
+2
-2
libcpu/arm/realview-a8-vmm/cpu.c
libcpu/arm/realview-a8-vmm/cpu.c
+1
-1
libcpu/arm/s3c24x0/cpu.c
libcpu/arm/s3c24x0/cpu.c
+2
-2
libcpu/arm/s3c44b0/cpu.c
libcpu/arm/s3c44b0/cpu.c
+2
-2
libcpu/arm/sep4020/cpu.c
libcpu/arm/sep4020/cpu.c
+2
-2
libcpu/arm/zynq7000/cpu.c
libcpu/arm/zynq7000/cpu.c
+2
-2
libcpu/avr32/uc3/cpu.c
libcpu/avr32/uc3/cpu.c
+1
-1
libcpu/mips/gs232/cpuport.c
libcpu/mips/gs232/cpuport.c
+2
-2
libcpu/risc-v/common/cpuport.c
libcpu/risc-v/common/cpuport.c
+1
-1
libcpu/risc-v/nuclei/cpuport.c
libcpu/risc-v/nuclei/cpuport.c
+1
-1
libcpu/risc-v/t-head/e906/cpuport.c
libcpu/risc-v/t-head/e906/cpuport.c
+1
-1
libcpu/rx/cpuport.c
libcpu/rx/cpuport.c
+1
-1
libcpu/ti-dsp/c28x/cpuport.c
libcpu/ti-dsp/c28x/cpuport.c
+1
-1
libcpu/unicore32/sep6200/cpu.c
libcpu/unicore32/sep6200/cpu.c
+2
-2
libcpu/xilinx/microblaze/cpu.c
libcpu/xilinx/microblaze/cpu.c
+2
-2
未找到文件。
libcpu/aarch64/common/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -76,7 +76,7 @@ void rt_hw_spin_unlock(rt_hw_spinlock_t *lock)
/*@{*/
/** shutdown CPU */
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arc/em/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -32,7 +32,7 @@ struct init_stack_frame {
/**
* shutdown CPU
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
}
...
...
libcpu/arm/AT91SAM7S/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -20,7 +20,7 @@
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
}
...
...
@@ -28,7 +28,7 @@ void rt_hw_cpu_reset()
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/AT91SAM7X/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -20,7 +20,7 @@
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
}
...
...
@@ -28,7 +28,7 @@ void rt_hw_cpu_reset()
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/am335x/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -149,7 +149,7 @@ rt_base_t rt_hw_cpu_dcache_status()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/arm926/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -146,7 +146,7 @@ rt_base_t rt_hw_cpu_dcache_status()
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
rt_kprintf
(
"Restarting system...
\n
"
);
...
...
@@ -161,7 +161,7 @@ void rt_hw_cpu_reset()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/armv6/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -147,7 +147,7 @@ rt_base_t rt_hw_cpu_dcache_status()
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
rt_kprintf
(
"Restarting system...
\n
"
);
...
...
@@ -162,7 +162,7 @@ void rt_hw_cpu_reset()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/cortex-a/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -74,7 +74,7 @@ void rt_hw_spin_unlock(rt_hw_spinlock_t *lock)
/*@{*/
/** shutdown CPU */
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/cortex-m3/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -344,7 +344,7 @@ void rt_hw_hard_fault_exception(struct exception_info * exception_info)
/**
* shutdown CPU
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/cortex-m33/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -431,7 +431,7 @@ void rt_hw_hard_fault_exception(struct exception_info *exception_info)
/**
* shutdown CPU
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/cortex-m4/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -428,7 +428,7 @@ void rt_hw_hard_fault_exception(struct exception_info *exception_info)
/**
* shutdown CPU
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/cortex-m7/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -428,7 +428,7 @@ void rt_hw_hard_fault_exception(struct exception_info *exception_info)
/**
* shutdown CPU
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/cortex-r4/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -20,7 +20,7 @@
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
}
...
...
@@ -28,7 +28,7 @@ void rt_hw_cpu_reset()
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/dm36x/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -145,7 +145,7 @@ rt_base_t rt_hw_cpu_dcache_status()
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
rt_kprintf
(
"Restarting system...
\n
"
);
...
...
@@ -160,7 +160,7 @@ void rt_hw_cpu_reset()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/lpc214x/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -163,7 +163,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
(
void
)
RT_WEAK
void
rt_hw_cpu_reset
(
void
)
{
}
...
...
@@ -171,7 +171,7 @@ void rt_hw_cpu_reset(void)
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/lpc24xx/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -20,7 +20,7 @@
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
}
...
...
@@ -28,7 +28,7 @@ void rt_hw_cpu_reset()
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/realview-a8-vmm/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -18,7 +18,7 @@
/*@{*/
/** shutdown CPU */
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/s3c24x0/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -148,7 +148,7 @@ rt_base_t rt_hw_cpu_dcache_status()
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
/* Disable all interrupt except the WDT */
INTMSK
=
(
~
((
rt_uint32_t
)
1
<<
INTWDT
));
...
...
@@ -171,7 +171,7 @@ void rt_hw_cpu_reset()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/s3c44b0/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -100,7 +100,7 @@ rt_base_t rt_hw_cpu_dcache_status()
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
}
...
...
@@ -108,7 +108,7 @@ void rt_hw_cpu_reset()
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/sep4020/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -152,7 +152,7 @@ rt_base_t rt_hw_cpu_dcache_status()
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
/* enable watchdog */
...
...
@@ -173,7 +173,7 @@ void rt_hw_cpu_reset()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
UNUSED
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/arm/zynq7000/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -16,7 +16,7 @@
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
while
(
1
);
/* loop forever and wait for reset to happen */
...
...
@@ -27,7 +27,7 @@ void rt_hw_cpu_reset()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/avr32/uc3/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -23,7 +23,7 @@
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
/*NOTREACHED*/
}
...
...
libcpu/mips/gs232/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -23,7 +23,7 @@
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
(
void
)
RT_WEAK
void
rt_hw_cpu_reset
(
void
)
{
/* open the watch-dog */
WDT_EN
=
0x01
;
/* watch dog enable */
...
...
@@ -38,7 +38,7 @@ void rt_hw_cpu_reset(void)
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/risc-v/common/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -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
"
);
...
...
libcpu/risc-v/nuclei/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -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
"
);
...
...
libcpu/risc-v/t-head/e906/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -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
"
);
...
...
libcpu/rx/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -182,7 +182,7 @@ void rt_hw_context_switch_interrupt(rt_uint32_t from, rt_uint32_t to)
*
* @author LXZ (2014/11/8)
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/ti-dsp/c28x/cpuport.c
浏览文件 @
355f8dd9
...
...
@@ -121,7 +121,7 @@ int __rt_ffs(int value)
/**
* shutdown CPU
*/
void
rt_hw_cpu_shutdown
(
void
)
RT_WEAK
void
rt_hw_cpu_shutdown
(
void
)
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/unicore32/sep6200/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -259,7 +259,7 @@ static void sep6200_poweroff(void)
* reset cpu by dog's time-out
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
rt_kprintf
(
"Soft reset, Restarting system...
\n
"
);
...
...
@@ -274,7 +274,7 @@ void rt_hw_cpu_reset()
* shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_uint32_t
level
;
rt_kprintf
(
"shutdown...
\n
"
);
...
...
libcpu/xilinx/microblaze/cpu.c
浏览文件 @
355f8dd9
...
...
@@ -18,7 +18,7 @@
* this function will reset CPU
*
*/
void
rt_hw_cpu_reset
()
RT_WEAK
void
rt_hw_cpu_reset
()
{
}
...
...
@@ -26,7 +26,7 @@ void rt_hw_cpu_reset()
* this function will shutdown CPU
*
*/
void
rt_hw_cpu_shutdown
()
RT_WEAK
void
rt_hw_cpu_shutdown
()
{
rt_kprintf
(
"shutdown...
\n
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录