summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/process.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-09 06:20:52 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-09 06:20:52 +0000
commit0b898e7acdab77a9eb047edf7235cb25151ee6da (patch)
treee297c006a447dd9b6869754f8f201b5330a02da1 /arch/mips/kernel/process.c
parenta2320c942ccf93dc1c72869f91829e7779e50ee6 (diff)
Fix a couple of bug related to the new handling of the stack and the
current pointer.
Diffstat (limited to 'arch/mips/kernel/process.c')
-rw-r--r--arch/mips/kernel/process.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index 08dd13c6c..3ffb9b258 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -64,20 +64,13 @@ void release_thread(struct task_struct *dead_task)
{
}
-#define roundup(val, rnd) ({ \
- unsigned _v = val; \
- unsigned long _r = rnd; \
- _v = (_v + _r - 1) & ~(_r - 1); \
- _v; \
-})
-
int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
struct task_struct * p, struct pt_regs * regs)
{
struct pt_regs * childregs;
long childksp;
- childksp = roundup((unsigned long)p, KERNEL_STACK_SIZE) - 8;
+ childksp = (unsigned long)p + KERNEL_STACK_SIZE - 8;
/* set up new TSS. */
childregs = ((struct pt_regs *) ((unsigned long)p + KERNEL_STACK_SIZE)) - 1;