about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-11 23:01:09 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-11 23:01:09 -0400
commita03f69d4456d3ac5120cc07a22af8ecb631444bb (patch)
treee8367f61100bb0d9d949612d4e6ba170718fecdb /src
parentb58f738bcb5877c83aef49129b40827a1d5ae4c7 (diff)
downloadmusl-a03f69d4456d3ac5120cc07a22af8ecb631444bb.tar.gz
musl-a03f69d4456d3ac5120cc07a22af8ecb631444bb.tar.xz
musl-a03f69d4456d3ac5120cc07a22af8ecb631444bb.zip
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...
Diffstat (limited to 'src')
-rw-r--r--src/thread/mips/clone.s1
1 files changed, 0 insertions, 1 deletions
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