From 1cf6f622d8362989eaf11cc8a3e7ad51e68bcbad Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Sep 2016 22:48:48 -0400 Subject: nt64: __pthread_convert(): properly allocate parameter stack space (win64 abi). --- arch/nt64/pthread_arch.h | 2 ++ 1 file changed, 2 insertions(+) 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" ); } -- cgit v1.2.3