Lines Matching +full:lpc +full:- +full:interrupts
1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <asm/asm-offsets.h>
7 #include <asm/dsp-impl.h>
8 #include <asm/irqflags-arcv2.h>
17 * manual --------------------- manual
29 * hw autosave ---------------------
39 * | lpc |
43 * ---------------------
46 * ---------------------
49 /*------------------------------------------------------------------------*/
52 ; (A) Before jumping to Interrupt Vector, hardware micro-ops did following:
53 ; 1. SP auto-switched to kernel mode stack
57 ; 4. Auto save: (optional) r0-r11, blink, LPE,LPS,LPC, JLI,LDI,EI
63 sub sp, sp, SZ_PT_REGS - 8
74 /*------------------------------------------------------------------------*/
77 ; (A) Before jumping to Exception Vector, hardware micro-ops did following:
78 ; 1. SP auto-switched to kernel mode stack
103 /*------------------------------------------------------------------------
105 * by hardware on taken interrupts. It is used by
106 * - exception handlers (which don't have autosave)
107 * - interrupt autosave disabled due to CONFIG_ARC_IRQ_NO_AUTOSAVE
129 /*------------------------------------------------------------------------
132 * - r12: the last caller saved scratch reg since hardware saves in pairs so r0-r11
133 * - r30: free reg, used by gcc as scratch
134 * - ACCL/ACCH pair when they exist
143 ; Saving pt_regs->sp correctly requires some extra work due to the way
145 ; - U mode: retrieve it from AUX_USER_SP
146 ; - K mode: add the offset from current SP where H/w starts auto push
158 st r10, [sp, PT_sp] ; SP (pt_regs->sp)
173 /*------------------------------------------------------------------------*/
182 ; - for K mode, it will be implicitly restored as stack is unwound
183 ; - Z flag set on K is inverse of what hardware does on interrupt entry
187 ld r10, [sp, PT_sp] ; SP (pt_regs->sp)
203 /*------------------------------------------------------------------------*/
224 /*------------------------------------------------------------------------*/
238 add sp, sp, SZ_PT_REGS - 8
245 /*------------------------------------------------------------------------*/
274 bmskn \reg, sp, THREAD_SHIFT - 1
277 /* Get CPU-ID of this core */
281 /* M = 8-1 N = 8 */