Lines Matching +full:per +full:- +full:hart
1 /* SPDX-License-Identifier: GPL-2.0-only */
14 #include <asm/asm-offsets.h>
35 addi sp, sp, -(PT_SIZE_ON_STACK)
45 addi sp, sp, -(PT_SIZE_ON_STACK)
77 * Disable user-mode memory access as it should only be set in the
172 * When running is M-Mode (no MMU config), MPIE does not get set.
180 /* Recover a0 - a7 for system calls */
268 REG_L s0, TASK_TI_FLAGS(tp) /* current_thread_info->flags */
301 * different hart contexts. We can't actually save and restore a load
302 * reservation, so instead here we clear any existing reservation --
309 * forward branch around an SC -- which is how we implement CAS. As a
377 /* Handle pending signals and notify-resume requests */
380 move a1, s0 /* current_thread_info->flags */
408 * Takes the psuedo-spinlock for the shadow stack, in case multiple
412 * swap in the address of the spinlock, as that's definately non-zero.
424 addi sp, sp, -(PT_SIZE_ON_STACK)
446 //save per-cpu overflow stack
447 REG_S a0, -8(sp)
466 //load per-cpu overflow stack
467 REG_L sp, -8(sp)
468 addi sp, sp, -(PT_SIZE_ON_STACK)
535 * The callee-saved registers must be saved and restored.
544 /* Save context into prev->thread */
562 /* Restore context from next->thread */