projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58f738
)
mips clone: don't free stack space used to copy arg
author
Rich Felker
<dalias@aerifal.cx>
Thu, 12 Jul 2012 03:01:09 +0000
(23:01 -0400)
committer
Rich 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
patch
|
blob
|
history
diff --git
a/src/thread/mips/clone.s
b/src/thread/mips/clone.s
index
fab90dc
..
826716a
100644
(file)
--- 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