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 <fan.yang@hpmicro.com> * [libcpu][risc-v][common] remove weak handle_trap function - removed weak handle_trap function from trap_common.c Signed-off-by: Fan YANG <fan.yang@hpmicro.com> --------- Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
This commit is contained in:
parent
ca4645000a
commit
96ba787e25
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
|
@ -302,3 +302,10 @@ void trap_entry(void)
|
||||||
write_fcsr(fcsr);
|
write_fcsr(fcsr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trap Handler
|
||||||
|
*/
|
||||||
|
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
||||||
|
{
|
||||||
|
}
|
|
@ -109,10 +109,3 @@ rt_weak void rt_show_stack_frame(void)
|
||||||
rt_kprintf("t6 : 0x%08x\r\n", s_stack_frame->t6);
|
rt_kprintf("t6 : 0x%08x\r\n", s_stack_frame->t6);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Trap Handler
|
|
||||||
*/
|
|
||||||
rt_weak void handle_trap(rt_uint32_t mcause, rt_uint32_t mepc, rt_uint32_t sp)
|
|
||||||
{
|
|
||||||
}
|
|
Loading…
Reference in New Issue