/* The software interrupt instruction (SWI) is used for entering Supervisor mode, usually to request a particular supervisor function. */
void rt_hw_trap_swi(struct rt_hw_register *regs)
/* The software interrupt instruction (SWI) is used for entering Supervisor mode, usually to request a particular supervisor function. */
void rt_hw_trap_swi(struct rt_hw_register *regs)
{
    if (rt_exception_hook != RT_NULL)
    {
        rt_err_t result;
        result = rt_exception_hook(regs);
        if (result == RT_EOK) return;
    }
    rt_hw_show_register(regs);
    rt_kprintf("software interrupt\n");
    rt_hw_cpu_shutdown();
}