summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorHuang bo <[email protected]>2021-11-18 09:56:45 +0800
committerHuang bo <[email protected]>2021-11-18 09:56:45 +0800
commit17246ed77bad3e00941555e225dd35a754ba143c (patch)
tree1f5de4f536acf453439dc23ee6952e2a33d61975 /libcpu
parent4a2ce8bca5b3682a514de8b1a0499624ad6da1fc (diff)
修改格式
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/ti-dsp/c6x/trap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcpu/ti-dsp/c6x/trap.c b/libcpu/ti-dsp/c6x/trap.c
index c7030c9bec..634e486396 100644
--- a/libcpu/ti-dsp/c6x/trap.c
+++ b/libcpu/ti-dsp/c6x/trap.c
@@ -106,7 +106,6 @@ void show_regs(struct rt_hw_exp_stack_register *regs)
regs->hw_register.a31, regs->hw_register.b31);
}
-
void do_trap(struct rt_exception_info *except_info, struct rt_hw_exp_stack_register *regs)
{
rt_kprintf("Enter exception: %s\n", except_info->kernel_str);
@@ -148,7 +147,9 @@ static int process_iexcept(struct rt_hw_exp_stack_register *regs)
if (*(unsigned int *)regs->pc == BKPT_OPCODE)
{
/* This is a breakpoint */
- struct rt_exception_info bkpt_exception = { " - undefined instruction", ABORT_TYPE_UNDDEF, ABORT_BRKPT_ILL };
+ struct rt_exception_info bkpt_exception = \
+ { " - undefined instruction",\
+ ABORT_TYPE_UNDDEF, ABORT_BRKPT_ILL };
do_trap(&bkpt_exception, regs);
iexcept_report &= ~(0xFF);
set_iexcept(iexcept_report);
@@ -299,7 +300,7 @@ static struct rt_exception_info except_table[128] = {
*/
static void process_except(struct rt_hw_exp_stack_register *regs)
{
- int except_num;
+ int except_num = 0;
int bank = 0;
int i = 0;