Skip to content

Bugfix/fix weak handle trap in riscv common crash rv64 trap handling #9189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm5300evk/startup/HPM5361/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有没有抽象一个公共文件就好了,我看你写了 N 个 ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我们下一版BSP发布的时候再统一更新一下吧,这版暂时就先这样了

* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm5301evklite/startup/HPM5301/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm6200evk/startup/HPM6280/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm6300evk/startup/HPM6360/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm6750evk/startup/HPM6750/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm6750evk2/startup/HPM6750/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm6750evkmini/startup/HPM6750/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 7 additions & 0 deletions bsp/hpmicro/hpm6800evk/startup/HPM6880/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,10 @@ void trap_entry(void)
write_fcsr(fcsr);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
7 changes: 0 additions & 7 deletions libcpu/risc-v/common/trap_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,3 @@ rt_weak void rt_show_stack_frame(void)
rt_kprintf("t6 : 0x%08x\r\n", s_stack_frame->t6);
#endif
}

/**
* Trap Handler
*/
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
{
}
Loading