forked from mirrors/nixpkgs
Fix for a syscall restart bug on linux-mips
svn path=/nixpkgs/branches/stdenv-updates/; revision=24791
This commit is contained in:
parent
c1620ef552
commit
13a8b34a81
12
pkgs/os-specific/linux/kernel/mips_restart.patch
Normal file
12
pkgs/os-specific/linux/kernel/mips_restart.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
|
||||
index 9996094..ae167df 100644
|
||||
--- a/arch/mips/kernel/process.c
|
||||
+++ b/arch/mips/kernel/process.c
|
||||
@@ -142,7 +142,6 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
|
||||
childregs->regs[7] = 0; /* Clear error flag */
|
||||
|
||||
childregs->regs[2] = 0; /* Child gets zero as return value */
|
||||
- regs->regs[2] = p->pid;
|
||||
|
||||
if (childregs->cp0_status & ST0_CU0) {
|
||||
childregs->regs[28] = (unsigned long) ti;
|
|
@ -203,6 +203,11 @@ in
|
|||
patch = ./sheevaplug_modules-2.6.35.patch;
|
||||
};
|
||||
|
||||
mips_restart_2_6_36 =
|
||||
{ name = "mips_restart_2_6_36";
|
||||
patch = ./mips_restart.patch;
|
||||
};
|
||||
|
||||
guruplug_defconfig =
|
||||
{ # Default configuration for the GuruPlug. From
|
||||
# <http://www.openplug.org/plugwiki/images/c/c6/Guruplug-patchset-2.6.33.2.tar.bz2>.
|
||||
|
|
|
@ -4764,6 +4764,7 @@ let
|
|||
[ #kernelPatches.fbcondecor_2_6_35
|
||||
kernelPatches.sec_perm_2_6_24
|
||||
#kernelPatches.aufs2_2_6_35
|
||||
kernelPatches.mips_restart_2_6_36
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue