b1a154dbf9
Disintegrate asm/system.h for CRIS. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> cc: linux-cris-kernel@axis.com
13 lines
410 B
C
13 lines
410 B
C
#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 */
|