Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
u010088926
rt-thread
提交
1997113f
R
rt-thread
项目概览
u010088926
/
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,发现更多精彩内容 >>
提交
1997113f
编写于
8月 28, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FINSH_USING_BUILT_IN_COMMANDS改MSH_USING_BUILT_IN_COMMANDS
上级
3d558238
变更
29
隐藏空白更改
内联
并排
Showing
29 changed file
with
95 addition
and
95 deletion
+95
-95
bsp/allwinner_tina/libcpu/trap.c
bsp/allwinner_tina/libcpu/trap.c
+4
-4
bsp/bluetrum/ab32vg1-ab-prougen/board/board.c
bsp/bluetrum/ab32vg1-ab-prougen/board/board.c
+1
-1
bsp/dm365/platform/trap.c
bsp/dm365/platform/trap.c
+4
-4
bsp/imx6sx/cortex-a9/cpu/trap.c
bsp/imx6sx/cortex-a9/cpu/trap.c
+6
-6
bsp/qemu-vexpress-gemini/cpu/trap.c
bsp/qemu-vexpress-gemini/cpu/trap.c
+6
-6
bsp/raspberry-pi/raspi2/cpu/trap.c
bsp/raspberry-pi/raspi2/cpu/trap.c
+6
-6
bsp/raspberry-pi/raspi3-32/cpu/trap.c
bsp/raspberry-pi/raspi3-32/cpu/trap.c
+6
-6
components/finsh/Kconfig
components/finsh/Kconfig
+1
-1
components/finsh/SConscript
components/finsh/SConscript
+1
-1
components/finsh/msh.c
components/finsh/msh.c
+2
-2
libcpu/aarch64/cortex-a53/trap.c
libcpu/aarch64/cortex-a53/trap.c
+2
-2
libcpu/aarch64/cortex-a72/trap.c
libcpu/aarch64/cortex-a72/trap.c
+2
-2
libcpu/arm/am335x/trap.c
libcpu/arm/am335x/trap.c
+4
-4
libcpu/arm/arm926/trap.c
libcpu/arm/arm926/trap.c
+4
-4
libcpu/arm/cortex-a/trap.c
libcpu/arm/cortex-a/trap.c
+6
-6
libcpu/arm/cortex-m0/cpuport.c
libcpu/arm/cortex-m0/cpuport.c
+2
-2
libcpu/arm/cortex-m23/cpuport.c
libcpu/arm/cortex-m23/cpuport.c
+2
-2
libcpu/arm/cortex-m3/cpuport.c
libcpu/arm/cortex-m3/cpuport.c
+2
-2
libcpu/arm/cortex-m33/cpuport.c
libcpu/arm/cortex-m33/cpuport.c
+2
-2
libcpu/arm/cortex-m4/cpuport.c
libcpu/arm/cortex-m4/cpuport.c
+2
-2
libcpu/arm/cortex-m7/cpuport.c
libcpu/arm/cortex-m7/cpuport.c
+2
-2
libcpu/arm/cortex-r4/trap.c
libcpu/arm/cortex-r4/trap.c
+4
-4
libcpu/arm/realview-a8-vmm/trap.c
libcpu/arm/realview-a8-vmm/trap.c
+6
-6
libcpu/arm/s3c24x0/trap.c
libcpu/arm/s3c24x0/trap.c
+4
-4
libcpu/arm/zynqmp-r5/trap.c
libcpu/arm/zynqmp-r5/trap.c
+6
-6
libcpu/risc-v/k210/interrupt.c
libcpu/risc-v/k210/interrupt.c
+2
-2
libcpu/risc-v/virt64/interrupt.c
libcpu/risc-v/virt64/interrupt.c
+2
-2
libcpu/rx/cpuport.c
libcpu/rx/cpuport.c
+2
-2
src/memheap.c
src/memheap.c
+2
-2
未找到文件。
bsp/allwinner_tina/libcpu/trap.c
浏览文件 @
1997113f
...
...
@@ -15,7 +15,7 @@
#define INT_FIQ 0x01
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -89,7 +89,7 @@ void rt_hw_trap_udef(struct rt_hw_register *regs)
rt_kprintf
(
"undefined instruction
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -141,7 +141,7 @@ void rt_hw_trap_pabt(struct rt_hw_register *regs)
rt_kprintf
(
"prefetch abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
RT_NAME_MAX
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -169,7 +169,7 @@ void rt_hw_trap_dabt(struct rt_hw_register *regs)
rt_kprintf
(
"data abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
RT_NAME_MAX
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
bsp/bluetrum/ab32vg1-ab-prougen/board/board.c
浏览文件 @
1997113f
...
...
@@ -209,7 +209,7 @@ void rt_hw_console_output(const char *str)
RT_SECTION
(
".irq.err"
)
void
exception_isr
(
void
)
{
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
sys_error_hook
(
1
);
...
...
bsp/dm365/platform/trap.c
浏览文件 @
1997113f
...
...
@@ -20,7 +20,7 @@
/*@{*/
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -56,7 +56,7 @@ void rt_hw_trap_udef(struct rt_hw_register *regs)
rt_kprintf
(
"undefined instruction
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -94,7 +94,7 @@ void rt_hw_trap_pabt(struct rt_hw_register *regs)
rt_kprintf
(
"prefetch abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -130,7 +130,7 @@ void rt_hw_trap_dabt(struct rt_hw_register *regs)
rt_kprintf
(
"data abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
bsp/imx6sx/cortex-a9/cpu/trap.c
浏览文件 @
1997113f
...
...
@@ -17,7 +17,7 @@
#include "gic.h"
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -49,7 +49,7 @@ void rt_hw_trap_undef(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"undefined instruction:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -68,7 +68,7 @@ void rt_hw_trap_swi(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -86,7 +86,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -104,7 +104,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"data abort:"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -121,7 +121,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"reserved trap:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
bsp/qemu-vexpress-gemini/cpu/trap.c
浏览文件 @
1997113f
...
...
@@ -21,7 +21,7 @@
#include "gic.h"
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -53,7 +53,7 @@ void rt_hw_trap_undef(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"undefined instruction:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -72,7 +72,7 @@ void rt_hw_trap_swi(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -90,7 +90,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -108,7 +108,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"data abort:"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -125,7 +125,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"reserved trap:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
bsp/raspberry-pi/raspi2/cpu/trap.c
浏览文件 @
1997113f
...
...
@@ -15,7 +15,7 @@
#include "armv7.h"
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -47,7 +47,7 @@ void rt_hw_trap_undef(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"undefined instruction:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -66,7 +66,7 @@ void rt_hw_trap_swi(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -84,7 +84,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -102,7 +102,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"data abort:"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -119,7 +119,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"reserved trap:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
bsp/raspberry-pi/raspi3-32/cpu/trap.c
浏览文件 @
1997113f
...
...
@@ -18,7 +18,7 @@
#include "armv7.h"
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -52,7 +52,7 @@ void rt_hw_trap_undef(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"undefined instruction:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -71,7 +71,7 @@ void rt_hw_trap_swi(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -89,7 +89,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -107,7 +107,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"data abort:"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -124,7 +124,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"reserved trap:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
components/finsh/Kconfig
浏览文件 @
1997113f
...
...
@@ -41,7 +41,7 @@ if RT_USING_MSH
int "The command line size for shell"
default 80
config
FIN
SH_USING_BUILT_IN_COMMANDS
config
M
SH_USING_BUILT_IN_COMMANDS
bool "Enable built-in commands, such as list_thread"
default y
...
...
components/finsh/SConscript
浏览文件 @
1997113f
...
...
@@ -6,7 +6,7 @@ shell.c
msh.c
'''
)
if
GetDepend
(
'
FIN
SH_USING_BUILT_IN_COMMANDS'
):
if
GetDepend
(
'
M
SH_USING_BUILT_IN_COMMANDS'
):
src
+=
[
'cmd.c'
]
if
GetDepend
(
'RT_USING_DFS'
):
...
...
components/finsh/msh.c
浏览文件 @
1997113f
...
...
@@ -54,7 +54,7 @@ int msh_help(int argc, char **argv)
}
MSH_CMD_EXPORT_ALIAS
(
msh_help
,
help
,
RT
-
Thread
shell
help
.);
#ifdef
FIN
SH_USING_BUILT_IN_COMMANDS
#ifdef
M
SH_USING_BUILT_IN_COMMANDS
int
cmd_ps
(
int
argc
,
char
**
argv
)
{
extern
long
list_thread
(
void
);
...
...
@@ -85,7 +85,7 @@ int cmd_free(int argc, char **argv)
}
MSH_CMD_EXPORT_ALIAS
(
cmd_free
,
free
,
Show
the
memory
usage
in
the
system
.);
#endif
/* RT_USING_HEAP */
#endif
/*
FIN
SH_USING_BUILT_IN_COMMANDS */
#endif
/*
M
SH_USING_BUILT_IN_COMMANDS */
static
int
msh_split
(
char
*
cmd
,
rt_size_t
length
,
char
*
argv
[
FINSH_ARG_MAX
])
{
...
...
libcpu/aarch64/cortex-a53/trap.c
浏览文件 @
1997113f
...
...
@@ -19,7 +19,7 @@
#endif
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -55,7 +55,7 @@ void rt_hw_trap_error(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"error exception:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/aarch64/cortex-a72/trap.c
浏览文件 @
1997113f
...
...
@@ -14,7 +14,7 @@
#include "armv8.h"
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -50,7 +50,7 @@ void rt_hw_trap_error(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"error exception:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/arm/am335x/trap.c
浏览文件 @
1997113f
...
...
@@ -24,7 +24,7 @@
/*@{*/
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -67,7 +67,7 @@ void rt_hw_trap_udef(struct rt_hw_register *regs)
rt_kprintf
(
"undefined instruction
\n
"
);
rt_kprintf
(
"thread %.*s stack:
\n
"
,
RT_NAME_MAX
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -105,7 +105,7 @@ void rt_hw_trap_pabt(struct rt_hw_register *regs)
rt_kprintf
(
"prefetch abort
\n
"
);
rt_kprintf
(
"thread %.*s stack:
\n
"
,
RT_NAME_MAX
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -133,7 +133,7 @@ void rt_hw_trap_dabt(struct rt_hw_register *regs)
rt_kprintf
(
"data abort
\n
"
);
rt_kprintf
(
"thread %.*s stack:
\n
"
,
RT_NAME_MAX
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/arm/arm926/trap.c
浏览文件 @
1997113f
...
...
@@ -16,7 +16,7 @@
#define INT_FIQ 0x01
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -90,7 +90,7 @@ void rt_hw_trap_udef(struct rt_hw_register *regs)
rt_kprintf
(
"undefined instruction
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -142,7 +142,7 @@ void rt_hw_trap_pabt(struct rt_hw_register *regs)
rt_kprintf
(
"prefetch abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
RT_NAME_MAX
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -170,7 +170,7 @@ void rt_hw_trap_dabt(struct rt_hw_register *regs)
rt_kprintf
(
"data abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
RT_NAME_MAX
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/arm/cortex-a/trap.c
浏览文件 @
1997113f
...
...
@@ -15,7 +15,7 @@
#include "armv7.h"
#include "interrupt.h"
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -89,7 +89,7 @@ void rt_hw_trap_undef(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"undefined instruction:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -115,7 +115,7 @@ void rt_hw_trap_swi(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -140,7 +140,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -165,7 +165,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"data abort:"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -189,7 +189,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"reserved trap:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/arm/cortex-m0/cpuport.c
浏览文件 @
1997113f
...
...
@@ -90,7 +90,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry,
return
stk
;
}
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
extern
rt_thread_t
rt_current_thread
;
...
...
@@ -110,7 +110,7 @@ void rt_hw_hard_fault_exception(struct exception_stack_frame *contex)
rt_kprintf
(
"hard fault on thread: %s
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
...
...
libcpu/arm/cortex-m23/cpuport.c
浏览文件 @
1997113f
...
...
@@ -91,7 +91,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry,
return
stk
;
}
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
extern
rt_thread_t
rt_current_thread
;
...
...
@@ -111,7 +111,7 @@ void rt_hw_hard_fault_exception(struct exception_stack_frame *contex)
rt_kprintf
(
"hard fault on thread: %s
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
...
...
libcpu/arm/cortex-m3/cpuport.c
浏览文件 @
1997113f
...
...
@@ -291,7 +291,7 @@ struct exception_info
*/
void
rt_hw_hard_fault_exception
(
struct
exception_info
*
exception_info
)
{
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
struct
stack_frame
*
context
=
&
exception_info
->
stack_frame
;
...
...
@@ -327,7 +327,7 @@ void rt_hw_hard_fault_exception(struct exception_info * exception_info)
{
rt_kprintf
(
"hard fault on thread: %s
\r\n\r\n
"
,
rt_thread_self
()
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
}
...
...
libcpu/arm/cortex-m33/cpuport.c
浏览文件 @
1997113f
...
...
@@ -373,7 +373,7 @@ struct exception_info
void
rt_hw_hard_fault_exception
(
struct
exception_info
*
exception_info
)
{
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
struct
exception_stack_frame
*
exception_stack
=
&
exception_info
->
stack_frame
.
exception_stack_frame
;
...
...
@@ -409,7 +409,7 @@ void rt_hw_hard_fault_exception(struct exception_info *exception_info)
{
rt_kprintf
(
"hard fault on thread: %s
\r\n\r\n
"
,
rt_thread_self
()
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
}
...
...
libcpu/arm/cortex-m4/cpuport.c
浏览文件 @
1997113f
...
...
@@ -370,7 +370,7 @@ struct exception_info
void
rt_hw_hard_fault_exception
(
struct
exception_info
*
exception_info
)
{
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
struct
exception_stack_frame
*
exception_stack
=
&
exception_info
->
stack_frame
.
exception_stack_frame
;
...
...
@@ -406,7 +406,7 @@ void rt_hw_hard_fault_exception(struct exception_info *exception_info)
{
rt_kprintf
(
"hard fault on thread: %s
\r\n\r\n
"
,
rt_thread_self
()
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
}
...
...
libcpu/arm/cortex-m7/cpuport.c
浏览文件 @
1997113f
...
...
@@ -370,7 +370,7 @@ struct exception_info
void
rt_hw_hard_fault_exception
(
struct
exception_info
*
exception_info
)
{
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
struct
exception_stack_frame
*
exception_stack
=
&
exception_info
->
stack_frame
.
exception_stack_frame
;
...
...
@@ -406,7 +406,7 @@ void rt_hw_hard_fault_exception(struct exception_info *exception_info)
{
rt_kprintf
(
"hard fault on thread: %s
\r\n\r\n
"
,
rt_thread_self
()
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
}
...
...
libcpu/arm/cortex-r4/trap.c
浏览文件 @
1997113f
...
...
@@ -67,7 +67,7 @@ void rt_hw_trap_svc(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -85,7 +85,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -103,7 +103,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"Data Abort "
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -120,7 +120,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"Reserved trap
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/arm/realview-a8-vmm/trap.c
浏览文件 @
1997113f
...
...
@@ -21,7 +21,7 @@
#include "gic.h"
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -53,7 +53,7 @@ void rt_hw_trap_undef(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"undefined instruction:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -72,7 +72,7 @@ void rt_hw_trap_swi(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -90,7 +90,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -108,7 +108,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"data abort:"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -125,7 +125,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"reserved trap:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/arm/s3c24x0/trap.c
浏览文件 @
1997113f
...
...
@@ -22,7 +22,7 @@
/*@{*/
extern
struct
rt_thread
*
rt_current_thread
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -58,7 +58,7 @@ void rt_hw_trap_udef(struct rt_hw_register *regs)
rt_kprintf
(
"undefined instruction
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -96,7 +96,7 @@ void rt_hw_trap_pabt(struct rt_hw_register *regs)
rt_kprintf
(
"prefetch abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -117,7 +117,7 @@ void rt_hw_trap_dabt(struct rt_hw_register *regs)
rt_kprintf
(
"data abort
\n
"
);
rt_kprintf
(
"thread - %s stack:
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/arm/zynqmp-r5/trap.c
浏览文件 @
1997113f
...
...
@@ -16,7 +16,7 @@
#include "armv7.h"
#include "interrupt.h"
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
(
void
);
#endif
...
...
@@ -48,7 +48,7 @@ void rt_hw_trap_undef(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"undefined instruction:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -67,7 +67,7 @@ void rt_hw_trap_swi(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"software interrupt:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -85,7 +85,7 @@ void rt_hw_trap_pabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"prefetch abort:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -103,7 +103,7 @@ void rt_hw_trap_dabt(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"data abort:"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
@@ -120,7 +120,7 @@ void rt_hw_trap_resv(struct rt_hw_exp_stack *regs)
{
rt_kprintf
(
"reserved trap:
\n
"
);
rt_hw_show_register
(
regs
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
rt_hw_cpu_shutdown
();
...
...
libcpu/risc-v/k210/interrupt.c
浏览文件 @
1997113f
...
...
@@ -335,7 +335,7 @@ uintptr_t handle_trap(uintptr_t mcause, uintptr_t epc, uintptr_t * sp)
else
{
rt_thread_t
tid
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
();
#endif
...
...
@@ -389,7 +389,7 @@ uintptr_t handle_trap(uintptr_t mcause, uintptr_t epc, uintptr_t * sp)
print_stack_frame
(
sp
);
rt_kprintf
(
"exception pc => 0x%08x
\n
"
,
epc
);
rt_kprintf
(
"current thread: %.*s
\n
"
,
RT_NAME_MAX
,
tid
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
while
(
1
);
...
...
libcpu/risc-v/virt64/interrupt.c
浏览文件 @
1997113f
...
...
@@ -212,7 +212,7 @@ void handle_trap(rt_size_t xcause,rt_size_t xtval,rt_size_t xepc,struct rt_hw_st
else
{
rt_thread_t
tid
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
long
list_thread
();
#endif
rt_hw_interrupt_disable
();
...
...
@@ -266,7 +266,7 @@ void handle_trap(rt_size_t xcause,rt_size_t xtval,rt_size_t xepc,struct rt_hw_st
dump_regs
(
sp
);
rt_kprintf
(
"exception pc => 0x%08x
\n
"
,
xepc
);
rt_kprintf
(
"current thread: %.*s
\n
"
,
RT_NAME_MAX
,
tid
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
while
(
1
);
...
...
libcpu/rx/cpuport.c
浏览文件 @
1997113f
...
...
@@ -94,7 +94,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
return
(
rt_uint8_t
*
)
stack_frame
;
}
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
void
list_thread
(
void
);
#endif
extern
rt_thread_t
rt_current_thread
;
...
...
@@ -130,7 +130,7 @@ void rt_hw_hard_fault_exception(struct stack_frame* exception_contex)
rt_kprintf
(
"acclo: 0x%08x
\n
"
,
exception_contex
->
ACCLO
);
}
rt_kprintf
(
"hard fault on thread: %s
\n
"
,
rt_current_thread
->
name
);
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_thread
();
#endif
while
(
1
);
...
...
src/memheap.c
浏览文件 @
1997113f
...
...
@@ -730,13 +730,13 @@ int memheaptrace(void)
if
(
count
>
0
)
{
int
index
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
extern
int
list_memheap
(
void
);
#endif
heaps
=
(
struct
rt_memheap
**
)
rt_malloc
(
sizeof
(
struct
rt_memheap
*
)
*
count
);
if
(
heaps
==
RT_NULL
)
return
0
;
#if defined(RT_USING_FINSH) && defined(
FIN
SH_USING_BUILT_IN_COMMANDS)
#if defined(RT_USING_FINSH) && defined(
M
SH_USING_BUILT_IN_COMMANDS)
list_memheap
();
#endif
rt_kprintf
(
"memheap header size: %d
\n
"
,
RT_MEMHEAP_SIZE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录