changeset 631:e5ad8cf0aa72

- BSD syscall segfault fix
author Tassilo Philipp
date Wed, 09 Nov 2022 14:46:38 +0100
parents 97e7d9490752
children ed19b429a152
files ChangeLog dyncall/dyncall_call_x86.S
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Oct 28 20:51:45 2022 +0200
+++ b/ChangeLog	Wed Nov 09 14:46:38 2022 +0100
@@ -18,6 +18,7 @@
     debuggers, exception handling, etc.; thanks Raphael Luba!)
   o fixed detection of native thiscall callconv for builds not using MSVC but using (or adhering to)
     the MSVC runtime (e.g. ReactOS' MinGW based RosBE)
+  o BSD syscall segfault fix
 dyncallback:
   o new, portable aggregate-by-value callback argument interface
   o aggregate-by-value (struct, union) support for x64 (win and sysv; thanks Raphael Luba!)
--- a/dyncall/dyncall_call_x86.S	Fri Oct 28 20:51:45 2022 +0200
+++ b/dyncall/dyncall_call_x86.S	Wed Nov 09 14:46:38 2022 +0100
@@ -231,6 +231,7 @@
 	REP(MOVSB)
 	MOVL(DWORD(EBP,8),EAX)      /* load system call id. */
 	CALL(_do_int)
+	ADDL(DWORD(EBP,16),ESP)
 	POP(EDI)                    /* restore preserved. */
 	POP(ESI)
 	MOVL(EBP,ESP)               /* epilog. */