On Thu, Oct 26, 2000 at 07:15:39PM -0700, Ralf Baechle wrote:
> Modified files:
> arch/mips/kernel: syscall.c signal.c
> include/asm-mips: stackframe.h
>
> Log message:
> Fix register corruption bug. Credits for forward porting this patch
> go to Jun Sun Industries :-)
The below patch is needed to build. The change to _unused is needed
because apparently we now have unused #define'd in stackframe.h.
Comments?
Index: syscall.c
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/syscall.c,v
retrieving revision 1.18
diff -u -r1.18 syscall.c
--- syscall.c 2000/10/27 02:15:39 1.18
+++ syscall.c 2000/10/27 16:50:54
@@ -97,7 +97,6 @@
{
int res;
- save_static(®s);
res = do_fork(SIGCHLD, regs.regs[29], ®s, 0);
return res;
}
@@ -110,7 +109,6 @@
unsigned long newsp;
int res;
- save_static(®s);
clone_flags = regs.regs[4];
newsp = regs.regs[5];
if (!newsp)
Index: process.c
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/process.c,v
retrieving revision 1.23
diff -u -r1.23 process.c
--- process.c 2000/10/24 23:26:08 1.23
+++ process.c 2000/10/27 16:50:55
@@ -71,7 +71,7 @@
}
int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
- unsigned long unused,
+ unsigned long _unused,
struct task_struct * p, struct pt_regs * regs)
{
struct pt_regs * childregs;
--
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows/
(( Project Foobazco Coordinator and Network Administrator )) aiieeeeeeee!
"The list of people so amazingly stupid they can't even tie their shoes?"
"Yeah, you know, /etc/passwd."
|