diff --git a/bsp/allwinner_tina/libcpu/trap.c b/bsp/allwinner_tina/libcpu/trap.c index 66f3e2ecb677b50ba29c8c2c20841a1964dccd55..2017f3375998f4f91b9a48b5b28dfcd67a72e775 100644 --- a/bsp/allwinner_tina/libcpu/trap.c +++ b/bsp/allwinner_tina/libcpu/trap.c @@ -15,7 +15,7 @@ #define INT_FIQ 0x01 extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c index 92753a361cf95b961d9fffacbacd8c837567918f..32714f6a4de71cf2b27da94fabfc29197e618c42 100644 --- a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c +++ b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c @@ -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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) extern long list_thread(void); #endif sys_error_hook(1); diff --git a/bsp/dm365/platform/trap.c b/bsp/dm365/platform/trap.c index c1636a5ab08bac9ed3323ff5dc806cf1c6072ee3..68b834b9d86147b61e4c820fc85373f2bea1bf8a 100644 --- a/bsp/dm365/platform/trap.c +++ b/bsp/dm365/platform/trap.c @@ -20,7 +20,7 @@ /*@{*/ extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/bsp/imx6sx/cortex-a9/cpu/trap.c b/bsp/imx6sx/cortex-a9/cpu/trap.c index 451a2f40db357119ed5f6cabf5c15594abaa386e..4625d1accfa4a0d21572b2d282e39cf71f53a4c3 100644 --- a/bsp/imx6sx/cortex-a9/cpu/trap.c +++ b/bsp/imx6sx/cortex-a9/cpu/trap.c @@ -17,7 +17,7 @@ #include "gic.h" extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/bsp/qemu-vexpress-gemini/cpu/trap.c b/bsp/qemu-vexpress-gemini/cpu/trap.c index 319dba851c6c6fa54acbcc80f50a2b5b6222140f..86eceb39cf982e09cc17a7ba47b66fdf075168d1 100644 --- a/bsp/qemu-vexpress-gemini/cpu/trap.c +++ b/bsp/qemu-vexpress-gemini/cpu/trap.c @@ -21,7 +21,7 @@ #include "gic.h" extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/bsp/raspberry-pi/raspi2/cpu/trap.c b/bsp/raspberry-pi/raspi2/cpu/trap.c index a8c3d5be0e47ee271a2a14e55c76627c9561ecbc..ef2f141546d1b6d988ae359c65e78edf8a29ed70 100644 --- a/bsp/raspberry-pi/raspi2/cpu/trap.c +++ b/bsp/raspberry-pi/raspi2/cpu/trap.c @@ -15,7 +15,7 @@ #include "armv7.h" extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/bsp/raspberry-pi/raspi3-32/cpu/trap.c b/bsp/raspberry-pi/raspi3-32/cpu/trap.c index 8a9cf9b133c383efe3b8a72bcebadd1214427a1f..3fcd16481eb73f31fc045a31a6c35c7c85589ada 100644 --- a/bsp/raspberry-pi/raspi3-32/cpu/trap.c +++ b/bsp/raspberry-pi/raspi3-32/cpu/trap.c @@ -18,7 +18,7 @@ #include "armv7.h" extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/components/finsh/Kconfig b/components/finsh/Kconfig index 1a980b06aa7202099e5bf020875df6b78c383c9b..cf4e673c75d26d8d9bb4f0e1d1a6462d34b1bf95 100644 --- a/components/finsh/Kconfig +++ b/components/finsh/Kconfig @@ -41,7 +41,7 @@ if RT_USING_MSH int "The command line size for shell" default 80 - config FINSH_USING_BUILT_IN_COMMANDS + config MSH_USING_BUILT_IN_COMMANDS bool "Enable built-in commands, such as list_thread" default y diff --git a/components/finsh/SConscript b/components/finsh/SConscript index 65395f346bbd7355d8684dff430f1e976bf82082..28fe02bac53de3fa8756714eaa43d2034baadb5f 100644 --- a/components/finsh/SConscript +++ b/components/finsh/SConscript @@ -6,7 +6,7 @@ shell.c msh.c ''') -if GetDepend('FINSH_USING_BUILT_IN_COMMANDS'): +if GetDepend('MSH_USING_BUILT_IN_COMMANDS'): src += ['cmd.c'] if GetDepend('RT_USING_DFS'): diff --git a/components/finsh/msh.c b/components/finsh/msh.c index a0680e2ce9fc18497a462c806322970bd2da1ebe..86985c561cb11752b4325b33ee0f90356366b402 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -54,7 +54,7 @@ int msh_help(int argc, char **argv) } MSH_CMD_EXPORT_ALIAS(msh_help, help, RT - Thread shell help.); -#ifdef FINSH_USING_BUILT_IN_COMMANDS +#ifdef MSH_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 /* FINSH_USING_BUILT_IN_COMMANDS */ +#endif /* MSH_USING_BUILT_IN_COMMANDS */ static int msh_split(char *cmd, rt_size_t length, char *argv[FINSH_ARG_MAX]) { diff --git a/libcpu/aarch64/cortex-a53/trap.c b/libcpu/aarch64/cortex-a53/trap.c index 4837d445d40d2f9a05783a6253437df790d0c9a2..60027135439dcf50afdb7fcffe08c68618142b81 100644 --- a/libcpu/aarch64/cortex-a53/trap.c +++ b/libcpu/aarch64/cortex-a53/trap.c @@ -19,7 +19,7 @@ #endif extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/aarch64/cortex-a72/trap.c b/libcpu/aarch64/cortex-a72/trap.c index b89a2cca70d4d2b5ad92e77e02edd20866a0072c..ba96f03a69aa20504508ff9797def1f8cd26e55c 100644 --- a/libcpu/aarch64/cortex-a72/trap.c +++ b/libcpu/aarch64/cortex-a72/trap.c @@ -14,7 +14,7 @@ #include "armv8.h" extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/arm/am335x/trap.c b/libcpu/arm/am335x/trap.c index 94da0063d002550c4b0e998e86acbcaff31223a2..19cb31ad678edf2d7a5bdba1ba146008ae3d4590 100644 --- a/libcpu/arm/am335x/trap.c +++ b/libcpu/arm/am335x/trap.c @@ -24,7 +24,7 @@ /*@{*/ extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/arm/arm926/trap.c b/libcpu/arm/arm926/trap.c index 5751636259714636cdc388cdb743f2c9709ad5c6..c1b1ffe912edf07d90297781eead17bc043fbe48 100644 --- a/libcpu/arm/arm926/trap.c +++ b/libcpu/arm/arm926/trap.c @@ -16,7 +16,7 @@ #define INT_FIQ 0x01 extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/arm/cortex-a/trap.c b/libcpu/arm/cortex-a/trap.c index a2153743486935001b7f9000e4f124dcd204449e..814db418cda8bd9551705351626193abbca45dd7 100644 --- a/libcpu/arm/cortex-a/trap.c +++ b/libcpu/arm/cortex-a/trap.c @@ -15,7 +15,7 @@ #include "armv7.h" #include "interrupt.h" -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/arm/cortex-m0/cpuport.c b/libcpu/arm/cortex-m0/cpuport.c index d6c9be11cf242a7cd0c6989c2297514534ddd73a..af343aa8b232932de63460a0047f53c2fa906308 100644 --- a/libcpu/arm/cortex-m0/cpuport.c +++ b/libcpu/arm/cortex-m0/cpuport.c @@ -90,7 +90,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, return stk; } -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif diff --git a/libcpu/arm/cortex-m23/cpuport.c b/libcpu/arm/cortex-m23/cpuport.c index 4619534c0523c670e8459a66b9a468fbc6caa30e..a3b18f5f35427397df26cc924a6a89215cf95fcd 100644 --- a/libcpu/arm/cortex-m23/cpuport.c +++ b/libcpu/arm/cortex-m23/cpuport.c @@ -91,7 +91,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, return stk; } -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif diff --git a/libcpu/arm/cortex-m3/cpuport.c b/libcpu/arm/cortex-m3/cpuport.c index 02f84564d5d1ce2dbafb408ec7d89055211efcfc..d376f0042454c304ee89a53df245b8c760f39f81 100644 --- a/libcpu/arm/cortex-m3/cpuport.c +++ b/libcpu/arm/cortex-m3/cpuport.c @@ -291,7 +291,7 @@ struct exception_info */ void rt_hw_hard_fault_exception(struct exception_info * exception_info) { -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif } diff --git a/libcpu/arm/cortex-m33/cpuport.c b/libcpu/arm/cortex-m33/cpuport.c index 8f73985f87a3180f4f7029ca404084bf1b99549f..aa2325012c0710fcd12337140c80567e15ede085 100644 --- a/libcpu/arm/cortex-m33/cpuport.c +++ b/libcpu/arm/cortex-m33/cpuport.c @@ -373,7 +373,7 @@ struct exception_info void rt_hw_hard_fault_exception(struct exception_info *exception_info) { -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif } diff --git a/libcpu/arm/cortex-m4/cpuport.c b/libcpu/arm/cortex-m4/cpuport.c index 8dfcbe9cc4557663a11842f203b88e8817afecd3..f24c33cf4d15baa4c094a2bdf054b2ae087e1a4d 100644 --- a/libcpu/arm/cortex-m4/cpuport.c +++ b/libcpu/arm/cortex-m4/cpuport.c @@ -370,7 +370,7 @@ struct exception_info void rt_hw_hard_fault_exception(struct exception_info *exception_info) { -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif } diff --git a/libcpu/arm/cortex-m7/cpuport.c b/libcpu/arm/cortex-m7/cpuport.c index 8dfcbe9cc4557663a11842f203b88e8817afecd3..f24c33cf4d15baa4c094a2bdf054b2ae087e1a4d 100644 --- a/libcpu/arm/cortex-m7/cpuport.c +++ b/libcpu/arm/cortex-m7/cpuport.c @@ -370,7 +370,7 @@ struct exception_info void rt_hw_hard_fault_exception(struct exception_info *exception_info) { -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif } diff --git a/libcpu/arm/cortex-r4/trap.c b/libcpu/arm/cortex-r4/trap.c index 9cb24026f0ffd4c82783820469f02317ba31fb6a..3ff3d297c0918a87605e31a2777d2a3bd30b871a 100644 --- a/libcpu/arm/cortex-r4/trap.c +++ b/libcpu/arm/cortex-r4/trap.c @@ -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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/arm/realview-a8-vmm/trap.c b/libcpu/arm/realview-a8-vmm/trap.c index 319dba851c6c6fa54acbcc80f50a2b5b6222140f..86eceb39cf982e09cc17a7ba47b66fdf075168d1 100644 --- a/libcpu/arm/realview-a8-vmm/trap.c +++ b/libcpu/arm/realview-a8-vmm/trap.c @@ -21,7 +21,7 @@ #include "gic.h" extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/arm/s3c24x0/trap.c b/libcpu/arm/s3c24x0/trap.c index 29190dce4e90f1d4521e4728c59702f92fe00d1c..c4be806dc6b925aed16b3e0084eebdc1ecaeda2f 100644 --- a/libcpu/arm/s3c24x0/trap.c +++ b/libcpu/arm/s3c24x0/trap.c @@ -22,7 +22,7 @@ /*@{*/ extern struct rt_thread *rt_current_thread; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/arm/zynqmp-r5/trap.c b/libcpu/arm/zynqmp-r5/trap.c index 9ec5d1a5682a820895d6c285d9c093f68f5c30bd..5db5a0c01b1be223702897001543c58db1b4bd2c 100644 --- a/libcpu/arm/zynqmp-r5/trap.c +++ b/libcpu/arm/zynqmp-r5/trap.c @@ -16,7 +16,7 @@ #include "armv7.h" #include "interrupt.h" -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif rt_hw_cpu_shutdown(); diff --git a/libcpu/risc-v/k210/interrupt.c b/libcpu/risc-v/k210/interrupt.c index 98cbef54015fe827a3f9f5186d58c0f7253afc7b..b5384b01ee65b104e97d09b92e3ffcff1fdc6f26 100644 --- a/libcpu/risc-v/k210/interrupt.c +++ b/libcpu/risc-v/k210/interrupt.c @@ -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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif while(1); diff --git a/libcpu/risc-v/virt64/interrupt.c b/libcpu/risc-v/virt64/interrupt.c index 4b109d71ad0c62234ed252fea0fdc5c124af2bf0..eae0a55c966d311f0a757dd3cb6c213e63d3604d 100644 --- a/libcpu/risc-v/virt64/interrupt.c +++ b/libcpu/risc-v/virt64/interrupt.c @@ -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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif while(1); diff --git a/libcpu/rx/cpuport.c b/libcpu/rx/cpuport.c index 9f737a50e7a7d1d0f29b0b9237ef29db49d34004..366569f63d56b25beebf4d29e43005f9e06fc4a1 100644 --- a/libcpu/rx/cpuport.c +++ b/libcpu/rx/cpuport.c @@ -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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) + #if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_thread(); #endif while (1); diff --git a/src/memheap.c b/src/memheap.c index 1f62c3afb0d7587f37c533d5416ff44a24b34098..e09f5c4bcebfbe594bd32ce6b267116a28e7a626 100644 --- a/src/memheap.c +++ b/src/memheap.c @@ -730,13 +730,13 @@ int memheaptrace(void) if (count > 0) { int index; -#if defined(RT_USING_FINSH) && defined(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_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(FINSH_USING_BUILT_IN_COMMANDS) +#if defined(RT_USING_FINSH) && defined(MSH_USING_BUILT_IN_COMMANDS) list_memheap(); #endif rt_kprintf("memheap header size: %d\n", RT_MEMHEAP_SIZE);