From bfba15c9b96c2a42bd02f51ff10596a23a677926 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 14 Sep 2013 19:19:11 -0400 Subject: 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. --- src/thread/mips/clone.s | 1 + 1 file changed, 1 insertion(+) (limited to 'src/thread/mips/clone.s') 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) -- cgit v1.2.1