mips clone: don't free stack space used to copy arg
authorRich Felker <dalias@aerifal.cx>
Thu, 12 Jul 2012 03:01:09 +0000 (23:01 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 12 Jul 2012 03:01:09 +0000 (23:01 -0400)
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...

src/thread/mips/clone.s

index fab90dc..826716a 100644 (file)
@@ -25,5 +25,4 @@ __clone:
 1:     lw $25, 0($sp)
        lw $4, 4($sp)
        jr $25
-       addu $sp, $sp, 16
        nop