From d9da5f59821732d18bcb8f1cc2c6615e83725b2b Mon Sep 17 00:00:00 2001 From: vanjeff Date: Thu, 6 Jul 2006 04:07:24 +0000 Subject: [PATCH] 1. Sync LinkedList.c with MWG 2. Fix one bug in Ipf/InterlockedCompareExchange64.s 3. Fix one bug in AsmDisablePaging64() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@786 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Ipf/InterlockedCompareExchange64.s | 2 +- MdePkg/Library/BaseLib/LinkedList.c | 3 --- MdePkg/Library/BaseLib/X64/DisablePaging64.asm | 3 ++- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/MdePkg/Library/BaseLib/Ipf/InterlockedCompareExchange64.s b/MdePkg/Library/BaseLib/Ipf/InterlockedCompareExchange64.s index 200e30e09e..88b9d2b490 100644 --- a/MdePkg/Library/BaseLib/Ipf/InterlockedCompareExchange64.s +++ b/MdePkg/Library/BaseLib/Ipf/InterlockedCompareExchange64.s @@ -22,7 +22,7 @@ .type InternalSyncCompareExchange64, @function InternalSyncCompareExchange64:: mov ar.ccv = r33 - cmpxchg8.rel r8 = [r64], r34 + cmpxchg8.rel r8 = [r32], r34 mf br.ret.sptk.many b0 .endp InternalSyncCompareExchange64 \ No newline at end of file diff --git a/MdePkg/Library/BaseLib/LinkedList.c b/MdePkg/Library/BaseLib/LinkedList.c index a1a2453fde..15ceb584db 100644 --- a/MdePkg/Library/BaseLib/LinkedList.c +++ b/MdePkg/Library/BaseLib/LinkedList.c @@ -34,9 +34,6 @@ IsNodeInList ( ASSERT (Node != NULL); Count = PcdGet32 (PcdMaximumLinkedListLength); - if (Count != 0) { - Count++; - } Ptr = List; do { diff --git a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm index 3134e42571..7b1e1b8bd2 100644 --- a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm +++ b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm @@ -26,7 +26,8 @@ InternalX86DisablePaging64 PROC cli shl rcx, 32 - lea ecx, @F + lea eax, @F + mov ecx, eax push rcx mov ebx, edx mov esi, r8d -- 2.39.2