From: Jonghyun Park Date: Thu, 9 Mar 2017 01:19:57 +0000 (+0900) Subject: [x86/Linux] 16-byte aligned UMThunkStubs (dotnet/coreclr#9997) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7794 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41091bf5fed7338a27deda53e94bbf3704d1318f;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [x86/Linux] 16-byte aligned UMThunkStubs (dotnet/coreclr#9997) Commit migrated from https://github.com/dotnet/coreclr/commit/fc588bec4852a1beedf9a13b78b28b550696b9eb --- diff --git a/src/coreclr/src/vm/i386/asmhelpers.S b/src/coreclr/src/vm/i386/asmhelpers.S index 790c063..08d3bc8 100644 --- a/src/coreclr/src/vm/i386/asmhelpers.S +++ b/src/coreclr/src/vm/i386/asmhelpers.S @@ -546,7 +546,11 @@ NESTED_ENTRY UM2MThunk_WrapperHelper, _TEXT, NoHandler mov eax, [esp + 20] // pEntryThunk mov ecx, [esp + 24] // pThread mov ebx, [esp + 8] // pThunkArgs - call [esp + 16] // pAddr + + sub esp, 8 + CHECK_STACK_ALIGNMENT + call [esp + 16 + 8] // pAddr + add esp, 8 pop ebx @@ -557,9 +561,12 @@ NESTED_ENTRY UMThunkStubRareDisable, _TEXT, NoHandler push eax push ecx + sub esp, 12 push eax // Push the UMEntryThunk push ecx // Push thread + CHECK_STACK_ALIGNMENT call C_FUNC(UMThunkStubRareDisableWorker) + add esp, 12 pop ecx pop eax