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@8970
6f19259b-4bc3-4df7-8a09-
765794883524
; The contents of the register in which the entry point is passed.\r
;\r
EbcLLGetEbcEntryPoint PROC PUBLIC\r
+ mov rax, r10\r
ret\r
EbcLLGetEbcEntryPoint ENDP\r
\r
\r
//\r
// Add code bytes to load up a processor register with the EBC entry point.\r
- // mov rax, 123456789abcdef0h => 48 B8 F0 DE BC 9A 78 56 34 12\r
+ // mov r10, 123456789abcdef0h => 48 B8 F0 DE BC 9A 78 56 34 12\r
// The first 8 bytes of the thunk entry is the address of the EBC\r
// entry point.\r
//\r
- *Ptr = 0x48;\r
+ *Ptr = 0x49;\r
Ptr++;\r
Size--;\r
- *Ptr = 0xB8;\r
+ *Ptr = 0xBA;\r
Ptr++;\r
Size--;\r
Addr = (UINT64) EbcEntryPoint;\r