summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-11 12:32:19 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-11 12:32:19 +0000
commitaa0583c78369a5a85d7bf26c76240ae4e3086c42 (patch)
treea4d6b278b7ab9dbdd96e6b4f5478d89e8eea6dee
parente500088c2d544465bbb0eff5ba94ece5210124bc (diff)
downloadedk2-platforms-aa0583c78369a5a85d7bf26c76240ae4e3086c42.tar.xz
Modify MDE source code according to MDE library update.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6103 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Include/Library/BaseLib.h30
-rw-r--r--MdePkg/Library/BaseLib/LinkedList.c12
2 files changed, 23 insertions, 19 deletions
diff --git a/MdePkg/Include/Library/BaseLib.h b/MdePkg/Include/Library/BaseLib.h
index 6683d4c741..24f93c9bb1 100644
--- a/MdePkg/Include/Library/BaseLib.h
+++ b/MdePkg/Include/Library/BaseLib.h
@@ -1370,7 +1370,7 @@ BcdToDecimal8 (
LIST_ENTRY *
EFIAPI
InitializeListHead (
- IN LIST_ENTRY *ListHead
+ IN OUT LIST_ENTRY *ListHead
);
@@ -1398,8 +1398,8 @@ InitializeListHead (
LIST_ENTRY *
EFIAPI
InsertHeadList (
- IN LIST_ENTRY *ListHead,
- IN LIST_ENTRY *Entry
+ IN OUT LIST_ENTRY *ListHead,
+ IN OUT LIST_ENTRY *Entry
);
@@ -1427,8 +1427,8 @@ InsertHeadList (
LIST_ENTRY *
EFIAPI
InsertTailList (
- IN LIST_ENTRY *ListHead,
- IN LIST_ENTRY *Entry
+ IN OUT LIST_ENTRY *ListHead,
+ IN OUT LIST_ENTRY *Entry
);
@@ -1513,11 +1513,13 @@ IsListEmpty (
/**
- Determines if a node in a doubly linked list is null.
+ Determines if a node in a doubly linked list is the head node of a the same
+ doubly linked list. This function is typically used to terminate a loop that
+ traverses all the nodes in a doubly linked list starting with the head node.
- Returns FALSE if Node is one of the nodes in the doubly linked list specified
- by List. Otherwise, TRUE is returned. List must have been initialized with
- InitializeListHead().
+ Returns TRUE if Node is equal to List. Returns FALSE if Node is one of the
+ nodes in the doubly linked list specified by List. List must have been
+ initialized with InitializeListHead().
If List is NULL, then ASSERT().
If Node is NULL, then ASSERT().
@@ -1600,8 +1602,8 @@ IsNodeAtEnd (
LIST_ENTRY *
EFIAPI
SwapListEntries (
- IN LIST_ENTRY *FirstEntry,
- IN LIST_ENTRY *SecondEntry
+ IN OUT LIST_ENTRY *FirstEntry,
+ IN OUT LIST_ENTRY *SecondEntry
);
@@ -3081,7 +3083,7 @@ InitializeSpinLock (
SPIN_LOCK *
EFIAPI
AcquireSpinLock (
- IN SPIN_LOCK *SpinLock
+ IN OUT SPIN_LOCK *SpinLock
);
@@ -3105,7 +3107,7 @@ AcquireSpinLock (
BOOLEAN
EFIAPI
AcquireSpinLockOrFail (
- IN SPIN_LOCK *SpinLock
+ IN OUT SPIN_LOCK *SpinLock
);
@@ -3126,7 +3128,7 @@ AcquireSpinLockOrFail (
SPIN_LOCK *
EFIAPI
ReleaseSpinLock (
- IN SPIN_LOCK *SpinLock
+ IN OUT SPIN_LOCK *SpinLock
);
diff --git a/MdePkg/Library/BaseLib/LinkedList.c b/MdePkg/Library/BaseLib/LinkedList.c
index d20c146c11..6f0d5c9534 100644
--- a/MdePkg/Library/BaseLib/LinkedList.c
+++ b/MdePkg/Library/BaseLib/LinkedList.c
@@ -1,7 +1,7 @@
/** @file
Linked List Library Functions.
- Copyright (c) 2006, Intel Corporation<BR>
+ Copyright (c) 2006 - 2008, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -289,11 +289,13 @@ IsListEmpty (
}
/**
- Determines if a node in a doubly linked list is null.
+ Determines if a node in a doubly linked list is the head node of a the same
+ doubly linked list. This function is typically used to terminate a loop that
+ traverses all the nodes in a doubly linked list starting with the head node.
- Returns FALSE if Node is one of the nodes in the doubly linked list specified
- by List. Otherwise, TRUE is returned. List must have been initialized with
- InitializeListHead().
+ Returns TRUE if Node is equal to List. Returns FALSE if Node is one of the
+ nodes in the doubly linked list specified by List. List must have been
+ initialized with InitializeListHead().
If List is NULL, then ASSERT().
If Node is NULL, then ASSERT().