Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-05-09 23:49:16 +0300
committerJan Kotas <jkotas@microsoft.com>2016-05-09 23:49:16 +0300
commitf636ccad5b842adf37d609bd525cdf08bec54ee5 (patch)
tree32bc96ee7ebf7de9dbe174b432922157e30173cb /src/Native/Runtime/i386
parent10937141e974d5788d1b4f4a23cf0e205ef661c1 (diff)
Pass return address explicitly to RhpReversePInvokeBadTransition
This eliminates need for BinderIntrinsics.GetReturnAddress() and CORERT ifdef [tfs-changeset: 1603077]
Diffstat (limited to 'src/Native/Runtime/i386')
-rw-r--r--src/Native/Runtime/i386/PInvoke.asm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Native/Runtime/i386/PInvoke.asm b/src/Native/Runtime/i386/PInvoke.asm
index 2e0c0ca9d..60559f738 100644
--- a/src/Native/Runtime/i386/PInvoke.asm
+++ b/src/Native/Runtime/i386/PInvoke.asm
@@ -205,6 +205,7 @@ ReverseTrapReturningThread:
BadTransition:
pop edx
pop ecx
+ mov ecx, dword ptr [esp] ; arg <- return address
jmp RhpReversePInvokeBadTransition
FASTCALL_ENDFUNC