Jelajahi Sumber

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...
Rich Felker 12 tahun lalu
induk
melakukan
a03f69d445
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      src/thread/mips/clone.s

+ 0 - 1
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