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:
qwang12 2008-07-21 01:42:14 +00:00
parent 5c5a0601e8
commit 22353b17c0
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,8 @@ Returns:
--*/
{
__asm {
mov eax, dword ptr Operand[0]
mov edx, dword ptr Operand[4]
mov ecx, Power
jcxz _Power10U64_Done
@ -58,6 +60,7 @@ _Power10U64_Wend:
push dword ptr Operand[4]
push dword ptr Operand[0]
call MultU64x32
add esp, 0Ch
mov dword ptr Operand[0], eax
mov dword ptr Operand[4], edx
loop _Power10U64_Wend