Lines Matching +full:per +full:- +full:hart
1 /* SPDX-License-Identifier: GPL-2.0-only */
16 #include <asm/asm-offsets.h>
36 addi sp, sp, -(PT_SIZE_ON_STACK)
46 addi sp, sp, -(PT_SIZE_ON_STACK)
53 * Disable user-mode memory access as it should only be set in the
118 * - handle_exception
119 * - ret_from_fork
153 * different hart contexts. We can't actually save and restore a load
154 * reservation, so instead here we clear any existing reservation --
161 * forward branch around an SC -- which is how we implement CAS. As a
199 addi sp, sp, -(PT_SIZE_ON_STACK)
241 * Calls func(regs) using the per-CPU IRQ stack.
245 addi sp, sp, -STACKFRAME_SIZE_ON_STACK
250 /* Switch to the per-CPU shadow call stack */
254 /* Switch to the per-CPU IRQ stack and call the handler */
264 addi sp, s0, -STACKFRAME_SIZE_ON_STACK
275 * The callee-saved registers must be saved and restored.
284 /* Save context into prev->thread */
304 /* Restore context from next->thread */