mirror of https://github.com/acidanthera/audk.git
Update MDE and EdkModule packages for ICC build with /W4 /WX /Ox switches, for some latest modifications break it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2366 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2419bd23d2
commit
15f83a8852
|
@ -32,7 +32,7 @@
|
||||||
<Keyword>UefiBootServicesTableLib</Keyword>
|
<Keyword>UefiBootServicesTableLib</Keyword>
|
||||||
</LibraryClass>
|
</LibraryClass>
|
||||||
<LibraryClass Usage="ALWAYS_CONSUMED">
|
<LibraryClass Usage="ALWAYS_CONSUMED">
|
||||||
<Keyword>UefiApplicationEntryPoint</Keyword>
|
<Keyword>UefiDriverEntryPoint</Keyword>
|
||||||
</LibraryClass>
|
</LibraryClass>
|
||||||
</LibraryClassDefinitions>
|
</LibraryClassDefinitions>
|
||||||
<SourceFiles>
|
<SourceFiles>
|
||||||
|
|
|
@ -134,8 +134,9 @@ RemoveMemoryMapEntry (
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
MEMORY_MAP *
|
MEMORY_MAP *
|
||||||
AllocateMemoryMapEntry (
|
AllocateMemoryMapEntry (
|
||||||
);
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
CoreAcquireMemoryLock (
|
CoreAcquireMemoryLock (
|
||||||
|
@ -651,9 +652,11 @@ Returns:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STATIC
|
||||||
MEMORY_MAP *
|
MEMORY_MAP *
|
||||||
AllocateMemoryMapEntry (
|
AllocateMemoryMapEntry (
|
||||||
)
|
VOID
|
||||||
|
)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
Routine Description:
|
Routine Description:
|
||||||
|
|
|
@ -47,7 +47,7 @@ CalculateSum8 (
|
||||||
ASSERT (Length <= (MAX_ADDRESS - ((UINTN) Buffer) + 1));
|
ASSERT (Length <= (MAX_ADDRESS - ((UINTN) Buffer) + 1));
|
||||||
|
|
||||||
for (Sum = 0, Count = 0; Count < Length; Count++) {
|
for (Sum = 0, Count = 0; Count < Length; Count++) {
|
||||||
Sum = Sum + *(Buffer + Count);
|
Sum = (UINT8) (Sum + *(Buffer + Count));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Sum;
|
return Sum;
|
||||||
|
@ -126,7 +126,7 @@ CalculateSum16 (
|
||||||
|
|
||||||
|
|
||||||
for (Sum = 0, Count = 0; Count < Length; Count++) {
|
for (Sum = 0, Count = 0; Count < Length; Count++) {
|
||||||
Sum = Sum + *(Buffer + Count);
|
Sum = (UINT16) (Sum + *(Buffer + Count));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Sum;
|
return Sum;
|
||||||
|
|
|
@ -528,7 +528,7 @@ InternalCharToUpper (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (Char >= L'a' && Char <= L'z') {
|
if (Char >= L'a' && Char <= L'z') {
|
||||||
return Char - (L'a' - L'A');
|
return (CHAR16) (Char - (L'a' - L'A'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return Char;
|
return Char;
|
||||||
|
@ -919,7 +919,8 @@ StrHexToUint64 (
|
||||||
(InternalHexCharToUintn (*String) <= REMINDER_MAX_UINT64_DIVIDED_BY_16))
|
(InternalHexCharToUintn (*String) <= REMINDER_MAX_UINT64_DIVIDED_BY_16))
|
||||||
);
|
);
|
||||||
|
|
||||||
Result = LShiftU64 (Result, 4) + InternalHexCharToUintn (*String);
|
Result = LShiftU64 (Result, 4);
|
||||||
|
Result = Result + InternalHexCharToUintn (*String);
|
||||||
String++;
|
String++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1930,7 +1931,8 @@ AsciiStrHexToUint64 (
|
||||||
(InternalAsciiHexCharToUintn (*String) <= REMINDER_MAX_UINT64_DIVIDED_BY_16))
|
(InternalAsciiHexCharToUintn (*String) <= REMINDER_MAX_UINT64_DIVIDED_BY_16))
|
||||||
);
|
);
|
||||||
|
|
||||||
Result = LShiftU64 (Result, 4) + InternalAsciiHexCharToUintn (*String);
|
Result = LShiftU64 (Result, 4);
|
||||||
|
Result = Result + InternalAsciiHexCharToUintn (*String);
|
||||||
String++;
|
String++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue