1. Sync LinkedList.c with MWG
authorvanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 6 Jul 2006 04:07:24 +0000 (04:07 +0000)
committervanjeff <vanjeff@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 6 Jul 2006 04:07:24 +0000 (04:07 +0000)
2. Fix one bug in Ipf/InterlockedCompareExchange64.s
3. Fix one bug in AsmDisablePaging64()

git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@786 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdePkg/Library/BaseLib/Ipf/InterlockedCompareExchange64.s
edk2/MdePkg/Library/BaseLib/LinkedList.c
edk2/MdePkg/Library/BaseLib/X64/DisablePaging64.asm

index 200e30e..88b9d2b 100644 (file)
@@ -22,7 +22,7 @@
 .type   InternalSyncCompareExchange64, @function\r
 InternalSyncCompareExchange64::\r
         mov                 ar.ccv = r33\r
-        cmpxchg8.rel        r8  = [r64], r34\r
+        cmpxchg8.rel        r8  = [r32], r34\r
         mf\r
         br.ret.sptk.many    b0\r
 .endp   InternalSyncCompareExchange64
\ No newline at end of file
index a1a2453..15ceb58 100644 (file)
@@ -34,9 +34,6 @@ IsNodeInList (
   ASSERT (Node != NULL);\r
 \r
   Count = PcdGet32 (PcdMaximumLinkedListLength);\r
-  if (Count != 0) {\r
-    Count++;\r
-  }\r
 \r
   Ptr = List;\r
   do {\r
index 3134e42..7b1e1b8 100644 (file)
@@ -26,7 +26,8 @@
 InternalX86DisablePaging64    PROC\r
     cli\r
     shl     rcx, 32\r
-    lea     ecx, @F\r
+    lea     eax, @F\r
+    mov     ecx, eax\r
     push    rcx\r
     mov     ebx, edx\r
     mov     esi, r8d\r