Lines Matching full:a0
34 RV_E( op a0, __struct_arch_esf_a0_OFFSET(sp) );\
299 mv a0, sp
314 addi a0, sp, __struct_arch_esf_soc_context_OFFSET
326 * returned via register a0 (1: interrupt, 0 exception)
330 bnez a0, is_interrupt
370 lr a0, ___cpu_t_current_OFFSET(s0)
380 * to _Fault (via register a0).
384 mv a0, sp
424 lr a0, __struct_arch_esf_a0_OFFSET(sp)
433 lb t1, _thread_offset_to_exception_depth(a0)
435 sb t1, _thread_offset_to_exception_depth(a0)
447 li a0, 3
451 /* Handle RV_ECALL_RUNTIME_EXCEPT. Retrieve reason in a0, esf in A1. */
452 lr a0, __struct_arch_esf_a0_OFFSET(sp)
483 * Routine pointer is in saved a0, argument in saved a1
484 * so we load them with a1/a0 (reversed).
487 lr a0, __struct_arch_esf_a1_OFFSET(sp)
503 /* Execute provided routine (argument is in a0 already). */
518 lr a0, ___cpu_t_current_OFFSET(s0)
534 lr a0, __struct_arch_esf_a0_OFFSET(sp)
555 mv a0, t0
573 /* Update a0 (return value) on the stack */
574 sr a0, __struct_arch_esf_a0_OFFSET(sp)
593 lr a0, ___cpu_t_current_OFFSET(s0)
633 csrr a0, mcause
635 and a0, a0, t0
639 * Pass IRQ number to __soc_handle_irq via register a0
648 slli a0, a0, (RV_REGSHIFT + 1)
649 add t0, t0, a0
651 /* Load argument in a0 register */
652 lr a0, 0(t0)
694 mv a0, zero
698 beqz a0, no_reschedule
704 * a0 = new thread
720 addi a0, sp, __struct_arch_esf_soc_context_OFFSET
726 mv a0, sp
755 lr a0, ___cpu_t_current_OFFSET(s0)