diff options
Diffstat (limited to 'MdePkg/Library')
-rw-r--r-- | MdePkg/Library/BaseLib/LinkedList.c | 4 | ||||
-rw-r--r-- | MdePkg/Library/BaseLib/String.c | 8 | ||||
-rw-r--r-- | MdePkg/Library/BaseLib/Synchronization.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/MdePkg/Library/BaseLib/LinkedList.c b/MdePkg/Library/BaseLib/LinkedList.c index 9ad1b0875b..be7e0a64b7 100644 --- a/MdePkg/Library/BaseLib/LinkedList.c +++ b/MdePkg/Library/BaseLib/LinkedList.c @@ -33,7 +33,7 @@ IsNodeInList ( ASSERT (List->BackLink != NULL);
ASSERT (Node != NULL);
- Count = FixedPcdGet32 (PcdMaximumLinkedListLength);
+ Count = PcdGet32 (PcdMaximumLinkedListLength);
if (Count != 0) {
Count++;
}
@@ -45,7 +45,7 @@ IsNodeInList ( } while ((Ptr != List) && (Ptr != Node) && (Count > 0));
Found = (BOOLEAN)(Ptr == Node);
- if (FixedPcdGet32 (PcdMaximumLinkedListLength) > 0) {
+ if (PcdGet32 (PcdMaximumLinkedListLength) > 0) {
while ((Count > 0) && (Ptr != List)) {
Ptr = Ptr->ForwardLink;
Count--;
diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c index 0483fc712e..c4330fa5d2 100644 --- a/MdePkg/Library/BaseLib/String.c +++ b/MdePkg/Library/BaseLib/String.c @@ -155,8 +155,8 @@ StrLen ( // If PcdMaximumUnicodeStringLength is not zero,
// length should not more than PcdMaximumUnicodeStringLength
//
- if (FixedPcdGet32 (PcdMaximumUnicodeStringLength) != 0) {
- ASSERT (Length < FixedPcdGet32 (PcdMaximumUnicodeStringLength));
+ if (PcdGet32 (PcdMaximumUnicodeStringLength) != 0) {
+ ASSERT (Length < PcdGet32 (PcdMaximumUnicodeStringLength));
}
}
return Length;
@@ -520,8 +520,8 @@ AsciiStrLen ( // If PcdMaximumUnicodeStringLength is not zero,
// length should not more than PcdMaximumUnicodeStringLength
//
- if (FixedPcdGet32 (PcdMaximumAsciiStringLength) != 0) {
- ASSERT (Length < FixedPcdGet32 (PcdMaximumAsciiStringLength));
+ if (PcdGet32 (PcdMaximumAsciiStringLength) != 0) {
+ ASSERT (Length < PcdGet32 (PcdMaximumAsciiStringLength));
}
}
return Length;
diff --git a/MdePkg/Library/BaseLib/Synchronization.c b/MdePkg/Library/BaseLib/Synchronization.c index 4c4734523d..0d51956d74 100644 --- a/MdePkg/Library/BaseLib/Synchronization.c +++ b/MdePkg/Library/BaseLib/Synchronization.c @@ -131,12 +131,12 @@ AcquireSpinLock ( Tick = 0;
Start = 0;
End = 0;
- if (FixedPcdGet32 (PcdSpinLockTimeout) > 0) {
+ if (PcdGet32 (PcdSpinLockTimeout) > 0) {
Tick = GetPerformanceCounter ();
Timeout = DivU64x32 (
MultU64x32 (
GetPerformanceCounterProperties (&Start, &End),
- FixedPcdGet32 (PcdSpinLockTimeout)
+ PcdGet32 (PcdSpinLockTimeout)
),
1000000
);
|