diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-03 00:49:30 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-03 00:49:30 +0000 |
commit | ffdc1867778e0282f63ea74f04d481d529d6a533 (patch) | |
tree | c6ba6f651ffb37f08ea407d1859f4cdc180003a8 /DuetPkg/EfiLdr | |
parent | 9008db4a285b14880d213a258d233da458dae8e3 (diff) | |
download | edk2-ffdc1867778e0282f63ea74f04d481d529d6a533.tar.gz edk2-ffdc1867778e0282f63ea74f04d481d529d6a533.tar.bz2 edk2-ffdc1867778e0282f63ea74f04d481d529d6a533.zip |
Clean up EfiLdr:
Refine code to pass CYGWIN GCC tool chain build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7405 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/EfiLdr')
-rw-r--r-- | DuetPkg/EfiLdr/Support.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DuetPkg/EfiLdr/Support.c b/DuetPkg/EfiLdr/Support.c index 0335d20e5a..ea3583a0f6 100644 --- a/DuetPkg/EfiLdr/Support.c +++ b/DuetPkg/EfiLdr/Support.c @@ -111,7 +111,7 @@ FindSpace ( if ((EfiMemoryDescriptor[Index].Type == EfiConventionalMemory) &&
(EfiMemoryDescriptor[Index].NumberOfPages >= NoPages)) {
if (EfiMemoryDescriptor[Index].PhysicalStart > MaxPhysicalStart) {
- if (EfiMemoryDescriptor[Index].PhysicalStart + LShiftU64(EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIFT) <= 0x100000000) {
+ if (EfiMemoryDescriptor[Index].PhysicalStart + LShiftU64(EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIFT) <= 0x100000000ULL) {
MaxPhysicalStart = EfiMemoryDescriptor[Index].PhysicalStart;
MaxNoPages = EfiMemoryDescriptor[Index].NumberOfPages;
CurrentMemoryDescriptor = &EfiMemoryDescriptor[Index];
@@ -206,7 +206,7 @@ GenMemoryMap ( //
// Update Memory Ceiling
//
- if ((BaseAddress >= 0x100000) && (BaseAddress < 0x100000000)) {
+ if ((BaseAddress >= 0x100000) && (BaseAddress < 0x100000000ULL)) {
if (Ceiling > BaseAddress) {
Ceiling = BaseAddress;
}
@@ -228,7 +228,7 @@ GenMemoryMap ( for (Index = 0; Index < *NumberOfMemoryMapEntries; Index++) {
if ((EfiMemoryDescriptor[Index].Type == EfiConventionalMemory) &&
(EfiMemoryDescriptor[Index].PhysicalStart > 0x100000) &&
- (EfiMemoryDescriptor[Index].PhysicalStart < 0x100000000)) {
+ (EfiMemoryDescriptor[Index].PhysicalStart < 0x100000000ULL)) {
if (EfiMemoryDescriptor[Index].PhysicalStart >= Ceiling) {
EfiMemoryDescriptor[Index].Type = EfiReservedMemoryType;
}
|