From: Rich Felker Date: Thu, 12 Jul 2012 03:01:09 +0000 (-0400) Subject: mips clone: don't free stack space used to copy arg X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=a03f69d4456d3ac5120cc07a22af8ecb631444bb mips clone: don't free stack space used to copy arg the mips abi reserves stack space equal to the size of the in-register args for the callee to save the args, if desired. this would cause the beginning of the thread structure to be clobbered... --- diff --git a/src/thread/mips/clone.s b/src/thread/mips/clone.s index fab90dc3..826716ab 100644 --- a/src/thread/mips/clone.s +++ b/src/thread/mips/clone.s @@ -25,5 +25,4 @@ __clone: 1: lw $25, 0($sp) lw $4, 4($sp) jr $25 - addu $sp, $sp, 16 nop