summaryrefslogtreecommitdiffhomepage
path: root/arch/nt64
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-19 22:48:48 -0400
committermidipix <writeonce@midipix.org>2016-09-19 22:48:48 -0400
commit1cf6f622d8362989eaf11cc8a3e7ad51e68bcbad (patch)
tree1b009a7749cef189e106f56013197ea94c6a0afb /arch/nt64
parent66d7d4f59d15e5b48d3508f75f9478520fc9346d (diff)
downloadmmglue-1cf6f622d8362989eaf11cc8a3e7ad51e68bcbad.tar.bz2
mmglue-1cf6f622d8362989eaf11cc8a3e7ad51e68bcbad.tar.xz
nt64: __pthread_convert(): properly allocate parameter stack space (win64 abi).
Diffstat (limited to 'arch/nt64')
-rw-r--r--arch/nt64/pthread_arch.h2
1 files changed, 2 insertions, 0 deletions
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"
);
}