mirror of https://github.com/acidanthera/audk.git
Fix a bug in Power10U64. Power10U64 should clean up the stack after calling MultU64x32. It also should load eax and edx with the initial value just in case it return directly when "Power" is zero.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5528 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5c5a0601e8
commit
22353b17c0
|
@ -50,6 +50,8 @@ Returns:
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
__asm {
|
__asm {
|
||||||
|
mov eax, dword ptr Operand[0]
|
||||||
|
mov edx, dword ptr Operand[4]
|
||||||
mov ecx, Power
|
mov ecx, Power
|
||||||
jcxz _Power10U64_Done
|
jcxz _Power10U64_Done
|
||||||
|
|
||||||
|
@ -58,6 +60,7 @@ _Power10U64_Wend:
|
||||||
push dword ptr Operand[4]
|
push dword ptr Operand[4]
|
||||||
push dword ptr Operand[0]
|
push dword ptr Operand[0]
|
||||||
call MultU64x32
|
call MultU64x32
|
||||||
|
add esp, 0Ch
|
||||||
mov dword ptr Operand[0], eax
|
mov dword ptr Operand[0], eax
|
||||||
mov dword ptr Operand[4], edx
|
mov dword ptr Operand[4], edx
|
||||||
loop _Power10U64_Wend
|
loop _Power10U64_Wend
|
||||||
|
|
Loading…
Reference in New Issue