summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-06 04:07:24 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-07-06 04:07:24 +0000
commitd9da5f59821732d18bcb8f1cc2c6615e83725b2b (patch)
tree28eca540d50e4663e4c23d531e350d511b331c23 /MdePkg
parentd6ac6b76a87152b3a42f2688daadd3ee63f7823b (diff)
downloadedk2-platforms-d9da5f59821732d18bcb8f1cc2c6615e83725b2b.tar.xz
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
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BaseLib/Ipf/InterlockedCompareExchange64.s2
-rw-r--r--MdePkg/Library/BaseLib/LinkedList.c3
-rw-r--r--MdePkg/Library/BaseLib/X64/DisablePaging64.asm3
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