From 96ba787e252c38abe08f039c052a4be378dfa42c Mon Sep 17 00:00:00 2001 From: Fan Yang <93824713+helloeagleyang@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:51:32 +0800 Subject: Bugfix/fix weak handle trap in riscv common crash rv64 trap handling (#9189) * [bsp][hpmicro] add weak handle_trap implementation - added weak handle_trap implementation Signed-off-by: Fan YANG * [libcpu][risc-v][common] remove weak handle_trap function - removed weak handle_trap function from trap_common.c Signed-off-by: Fan YANG --------- Signed-off-by: Fan YANG --- libcpu/risc-v/common/trap_common.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libcpu') diff --git a/libcpu/risc-v/common/trap_common.c b/libcpu/risc-v/common/trap_common.c index 3cbbfeb008..6f7352cd56 100644 --- a/libcpu/risc-v/common/trap_common.c +++ b/libcpu/risc-v/common/trap_common.c @@ -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) -{ -} \ No newline at end of file -- cgit v1.3.1