1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __ASM_CRIS_SWITCH_TO_H 3 #define __ASM_CRIS_SWITCH_TO_H 4 5 /* the switch_to macro calls resume, an asm function in entry.S which does the actual 6 * task switching. 7 */ 8 9 extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int); 10 #define switch_to(prev,next,last) last = resume(prev,next, \ 11 (int)&((struct task_struct *)0)->thread) 12 13 #endif /* __ASM_CRIS_SWITCH_TO_H */ 14