[x86/Linux] Fix UMThunkStub calling convension (dotnet/coreclr#8714)
authorSaeHie Park <saehie.park@gmail.com>
Mon, 2 Jan 2017 14:59:40 +0000 (23:59 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 2 Jan 2017 14:59:40 +0000 (15:59 +0100)
commit337c8bc8898abbc40b9445cc917d36fd3778a907
tree007f21b360424609edb2593a7541bdf7f2dd4d8a
parent4750facca329653f6f8c92ee23a3ad09e0ceffba
[x86/Linux] Fix UMThunkStub calling convension (dotnet/coreclr#8714)

This fixes reverse P/Invoke segment faults by handling cdecl from UM to
fastcall for Managed code, which corrects many CoreFX unit test cases including CharMinValue.exe.
First and second parameter(s) are set to ECX, EDX and rest to the stack.

Commit migrated from https://github.com/dotnet/coreclr/commit/0a11492d52faa85c551761f8390be5de9d74e5ec
src/coreclr/src/vm/i386/umthunkstub.S