Lines Matching +full:sw +full:- +full:exception
1 /* SPDX-License-Identifier: GPL-2.0-only */
14 #include <asm/asm-offsets.h>
35 addi sp, sp, -(PT_SIZE_ON_STACK)
67 * Disable user-mode memory access as it should only be set in the
89 * Set the scratch register to 0, so that if a recursive exception
90 * occurs, the exception vector knows it came from the kernel
150 /* Check if exception code lies within bounds */
159 /* Recover a0 - a7 for system calls */
191 * Check if syscall is rejected by tracer, i.e., a7 == -1.
194 li t1, -1
236 REG_L s0, TASK_TI_FLAGS(tp) /* current_thread_info->flags */
270 * reservation, so instead here we clear any existing reservation --
277 * forward branch around an SC -- which is how we implement CAS. As a
345 /* Handle pending signals and notify-resume requests */
348 move a1, s0 /* current_thread_info->flags */
391 * The callee-saved registers must be saved and restored.
400 /* Save context into prev->thread */
418 /* Restore context from next->thread */
436 sw a3, TASK_TI_CPU(a1)
437 sw a4, TASK_TI_CPU(a0)
448 /* Exception vector table */