projects
/
platform
/
upstream
/
libffi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d369522
)
src/x86/win32.S: Define ffi_closure_FASTCALL in the MASM section, too
author
Josh Triplett
<josh@joshtriplett.org>
Wed, 23 Apr 2014 04:17:52 +0000
(21:17 -0700)
committer
Josh Triplett
<josh@joshtriplett.org>
Wed, 23 Apr 2014 04:17:52 +0000
(21:17 -0700)
src/x86/win32.S
patch
|
blob
|
history
diff --git
a/src/x86/win32.S
b/src/x86/win32.S
index 699ea464be176ea0d98e650c30210dfb12f7dbd6..daf0e799ca46d6b34b850a17f431e690a27f9bd4 100644
(file)
--- a/
src/x86/win32.S
+++ b/
src/x86/win32.S
@@
-201,6
+201,15
@@
ffi_closure_THISCALL PROC NEAR
jmp ffi_closure_STDCALL
ffi_closure_THISCALL ENDP
+ffi_closure_FASTCALL PROC NEAR
+ ;; Insert the register argument on the stack as the first argument
+ xchg DWORD PTR [esp+4], edx
+ xchg DWORD PTR [esp], ecx
+ push edx
+ push ecx
+ jmp ffi_closure_STDCALL
+ffi_closure_FASTCALL ENDP
+
ffi_closure_SYSV PROC NEAR FORCEFRAME
;; the ffi_closure ctx is passed in eax by the trampoline.