From 1cf6f622d8362989eaf11cc8a3e7ad51e68bcbad Mon Sep 17 00:00:00 2001 From: midipix Date: Sep 20 2016 02:48:48 +0000 Subject: nt64: __pthread_convert(): properly allocate parameter stack space (win64 abi). --- diff --git a/arch/nt64/pthread_arch.h b/arch/nt64/pthread_arch.h index fbbf3cd..5c15b69 100644 --- a/arch/nt64/pthread_arch.h +++ b/arch/nt64/pthread_arch.h @@ -29,7 +29,9 @@ static inline void __pthread_convert(void) __asm__ __volatile__ ( "push %rax\n\t" "movq __psx_vtbl,%rax\n\t" + "sub $0x28,%rsp\n\t" "call *(%rax)\n\t" + "add $0x28,%rsp\n\t" "pop %rax\n\t" ); }