about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtools')
-rwxr-xr-xsrc/libtools/threads32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtools/threads32.c b/src/libtools/threads32.c
index 0ba81b77..067a4861 100755
--- a/src/libtools/threads32.c
+++ b/src/libtools/threads32.c
@@ -140,6 +140,7 @@ static void* pthread_routine(void* p)
 	R_EBP = R_ESP;	// MOV BP, SP
     R_ESP -= 32;	// guard area
 	R_ESP &=~15;
+	R_ESP -= 3*4;	// prepare alignment
 	Push_32(emu, to_ptrv(et->arg));
 	PushExit_32(emu);
 	R_EIP = to_ptr(et->fnc);