diff options
author | David Howells <dhowells@redhat.com> | 2012-03-28 21:30:02 +0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-03-28 21:30:02 +0400 |
commit | b1a154dbf9ddbf396578642299ce75aa73d01763 (patch) | |
tree | 2db04ef58f3af63ed2ca6060a7bc18157acc8a7d /arch/cris/include/asm/switch_to.h | |
parent | 6a846f3f821a252762897751fa0aeb68dda635f5 (diff) | |
download | linux-b1a154dbf9ddbf396578642299ce75aa73d01763.tar.xz |
Disintegrate asm/system.h for CRIS
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
Diffstat (limited to 'arch/cris/include/asm/switch_to.h')
-rw-r--r-- | arch/cris/include/asm/switch_to.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/cris/include/asm/switch_to.h b/arch/cris/include/asm/switch_to.h new file mode 100644 index 000000000000..d842e1163ba1 --- /dev/null +++ b/arch/cris/include/asm/switch_to.h @@ -0,0 +1,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 */ |