musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年09月14日 19:19:11 -0400
committerRich Felker <dalias@aerifal.cx>2013年09月14日 19:19:11 -0400
commitbfba15c9b96c2a42bd02f51ff10596a23a677926 (patch)
tree2d0718933972275fefa3ea1e256c2ad51de08357 /src
parent9b35ed3fefca6817d7334f15a883d068e0034011 (diff)
downloadmusl-bfba15c9b96c2a42bd02f51ff10596a23a677926.tar.gz
fix child stack alignment on mips clone
unlike other archs, the mips version of clone was not doing anything to align the stack pointer. this seems to have been the cause for some SIGBUS crashes that were observed in posix_spawn.
Diffstat (limited to 'src')
-rw-r--r--src/thread/mips/clone.s 1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread/mips/clone.s b/src/thread/mips/clone.s
index 826716ab..6c2e7908 100644
--- a/src/thread/mips/clone.s
+++ b/src/thread/mips/clone.s
@@ -3,6 +3,7 @@
.type __clone,@function
__clone:
# Save function pointer and argument pointer on new thread stack
+ and 5,ドル 5,ドル -8
subu 5,ドル 5,ドル 16
sw 4,ドル 0(5ドル)
sw 7,ドル 4(5ドル)
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月16日 20:25:54 +0000

AltStyle によって変換されたページ (->オリジナル) /