Home
last modified time | relevance | path

Searched refs:cause (Results 1 – 5 of 5) sorted by relevance

/libcpu/risc-v/rv64/
A Dtrap.c105 rt_weak rt_size_t handle_trap(rt_size_t cause, rt_size_t epc, rt_size_t *sp) in handle_trap() argument
107 if (cause & (1UL << (__riscv_xlen - 1))) //interrupt in handle_trap()
109 if ((cause & 0x1f) == IRQ_M_SOFT) in handle_trap()
113 else if ((cause & 0x1f) == IRQ_M_TIMER) in handle_trap()
117 else if ((cause & 0x1f) == IRQ_M_EXT) in handle_trap()
133 switch (cause) in handle_trap()
172 rt_kprintf("Uknown exception : %08lX", cause); in handle_trap()
/libcpu/mips/common/
A Dexception.c166 rt_ubase_t cause, exccode; in rt_general_exc_dispatch() local
167 cause = read_c0_cause(); in rt_general_exc_dispatch()
168 exccode = (cause & CAUSEF_EXCCODE) >> CAUSEB_EXCCODE; in rt_general_exc_dispatch()
175 pending = (cause & CAUSEF_IP) & (status & ST0_IM); in rt_general_exc_dispatch()
A Dmips_regs.h1126 __BUILD_SET_C0(cause,CP0_CAUSE)
/libcpu/risc-v/common64/
A Dtrap.c137 #define CHECK_NESTED_PANIC(cause, tval, epc, eframe) \ argument
138 if (nested != 1) handle_nested_trap_panic(cause, tval, epc, eframe)
280 static void handle_nested_trap_panic(rt_ubase_t cause, rt_ubase_t tval, in handle_nested_trap_panic() argument
286 LOG_E("scause:%p,stval:%p,sepc:%p\n", cause, tval, epc); in handle_nested_trap_panic()
/libcpu/arm/cortex-m4/
A DREADME.md4 Calling `rt_hw_interrupt_disable` in multiple places on `rt-thread` may cause interruption delays w…

Completed in 10 milliseconds