1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Fix for a syscall restart bug on linux-mips

svn path=/nixpkgs/branches/stdenv-updates/; revision=24791
This commit is contained in:
Lluís Batlle i Rossell 2010-11-21 15:26:36 +00:00
parent c1620ef552
commit 13a8b34a81
3 changed files with 18 additions and 0 deletions

View 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;

View file

@ -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>.

View file

@ -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
];
};