Fix bug in EBC thunk for X64 that appears when higher levels of compiler optimization is used.

This is a temporary fix that should for for most tool chains.  A more complete fix will be required to guarantee compatibility with all tool chains.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8973 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2009-07-18 16:00:10 +00:00
parent 2703f9e230
commit ebceb28e26
2 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@ ASM_PFX(EbcLLCALLEXNative):
# #
ASM_GLOBAL ASM_PFX(EbcLLGetEbcEntryPoint); ASM_GLOBAL ASM_PFX(EbcLLGetEbcEntryPoint);
ASM_PFX(EbcLLGetEbcEntryPoint): ASM_PFX(EbcLLGetEbcEntryPoint):
mov %r10, %rax
ret ret
#/*++ #/*++

View File

@ -412,7 +412,7 @@ EbcCreateThunks (
// //
// Add code bytes to load up a processor register with the EBC entry point. // Add code bytes to load up a processor register with the EBC entry point.
// mov r10, 123456789abcdef0h => 48 B8 F0 DE BC 9A 78 56 34 12 // mov r10, 123456789abcdef0h => 49 BA F0 DE BC 9A 78 56 34 12
// The first 8 bytes of the thunk entry is the address of the EBC // The first 8 bytes of the thunk entry is the address of the EBC
// entry point. // entry point.
// //