[PATCH] m68k: introduce setup_thread_stack() and end_of_stack()
authorAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Mon, 14 Nov 2005 00:06:56 +0000 (16:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 14 Nov 2005 02:14:13 +0000 (18:14 -0800)
commit10ebffde3d3916026974352b7900e44afe2b243f
treeac88fa33694f5bea1b6958e1e56bcd4c9b95b002
parenta1261f54611ec4ad6a7ab7080f86747e3ac3685b
[PATCH] m68k: introduce setup_thread_stack() and end_of_stack()

encapsulates the rest of arch-dependent operations with thread_info access.
Two new helpers - setup_thread_stack() and end_of_stack().  For normal case
the former consists of copying thread_info of parent to new thread_info and
the latter returns pointer immediately past the end of thread_info.

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sched.h
kernel/fork.c
kernel/sched.c