summaryrefslogtreecommitdiff
path: root/arch/cris/include/asm/switch_to.h
blob: d842e1163ba1edf1b61b99995007c7a326ba4b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __ASM_CRIS_SWITCH_TO_H
#define __ASM_CRIS_SWITCH_TO_H

/* the switch_to macro calls resume, an asm function in entry.S which does the actual
 * task switching.
 */

extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int);
#define switch_to(prev,next,last) last = resume(prev,next, \
					 (int)&((struct task_struct *)0)->thread)

#endif /* __ASM_CRIS_SWITCH_TO_H */