Commit bb2b442e authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu: convert use of KTHRAD_SIZE to THREAD_SIZE in process.c

Convert KTHREAD_SIZE to THREAD_SIZE.
Patch original submitted by Philippe De Muyter <phdm@macqel.be>
Signed-off-by: default avatarGreg Ungerer <gerg@snapgear.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d192ef7d
...@@ -199,7 +199,7 @@ int copy_thread(int nr, unsigned long clone_flags, ...@@ -199,7 +199,7 @@ int copy_thread(int nr, unsigned long clone_flags,
struct switch_stack * childstack, *stack; struct switch_stack * childstack, *stack;
unsigned long stack_offset, *retp; unsigned long stack_offset, *retp;
stack_offset = KTHREAD_SIZE - sizeof(struct pt_regs); stack_offset = THREAD_SIZE - sizeof(struct pt_regs);
childregs = (struct pt_regs *) ((unsigned long) p->thread_info + stack_offset); childregs = (struct pt_regs *) ((unsigned long) p->thread_info + stack_offset);
*childregs = *regs; *childregs = *regs;
...@@ -342,7 +342,7 @@ void dump(struct pt_regs *fp) ...@@ -342,7 +342,7 @@ void dump(struct pt_regs *fp)
(int) current->mm->brk); (int) current->mm->brk);
printk(KERN_EMERG "USER-STACK=%08x KERNEL-STACK=%08x\n\n", printk(KERN_EMERG "USER-STACK=%08x KERNEL-STACK=%08x\n\n",
(int) current->mm->start_stack, (int) current->mm->start_stack,
(int)(((unsigned long) current) + KTHREAD_SIZE)); (int)(((unsigned long) current) + THREAD_SIZE));
} }
printk(KERN_EMERG "PC: %08lx\n", fp->pc); printk(KERN_EMERG "PC: %08lx\n", fp->pc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment