diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 01:05:54 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 09:08:55 -0800 |
commit | 513091ba7e4a8b498632d7913ff9408ebbca6235 (patch) | |
tree | cb460fb97713839a33cc0df61a336d6884990f4b /arch/m68knommu | |
parent | 768595ffba46b101ad54d8775e640fecbe470d9a (diff) | |
download | blackbird-op-linux-513091ba7e4a8b498632d7913ff9408ebbca6235.tar.gz blackbird-op-linux-513091ba7e4a8b498632d7913ff9408ebbca6235.zip |
[PATCH] m68knommu: task_stack_page()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m68knommu')
-rw-r--r-- | arch/m68knommu/kernel/process.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/m68knommu/kernel/process.c b/arch/m68knommu/kernel/process.c index 8b3cf57ba706..99bf43824795 100644 --- a/arch/m68knommu/kernel/process.c +++ b/arch/m68knommu/kernel/process.c @@ -198,10 +198,9 @@ int copy_thread(int nr, unsigned long clone_flags, { struct pt_regs * childregs; struct switch_stack * childstack, *stack; - unsigned long stack_offset, *retp; + unsigned long *retp; - stack_offset = THREAD_SIZE - sizeof(struct pt_regs); - childregs = (struct pt_regs *) ((unsigned long) p->thread_info + stack_offset); + childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1; *childregs = *regs; childregs->d0 = 0; |