ECC Clean up.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6205 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-10-24 02:55:01 +00:00
parent 2f3d6fb515
commit 43025b293f
3 changed files with 4 additions and 5 deletions

View File

@ -1281,7 +1281,7 @@ CoreGetMemoryMap (
MemoryMap->Attribute |= EFI_MEMORY_RUNTIME;
}
MemoryMap = NextMemoryDescriptor (MemoryMap, Size);
MemoryMap = NEXT_MEMORY_DESCRIPTOR (MemoryMap, Size);
}
for (Link = mGcdMemorySpaceMap.ForwardLink; Link != &mGcdMemorySpaceMap; Link = Link->ForwardLink) {
@ -1308,7 +1308,7 @@ CoreGetMemoryMap (
}
}
MemoryMap = NextMemoryDescriptor (MemoryMap, Size);
MemoryMap = NEXT_MEMORY_DESCRIPTOR (MemoryMap, Size);
}
}
}

View File

@ -181,7 +181,7 @@ RuntimeDriverConvertPointer (
}
}
VirtEntry = NextMemoryDescriptor (VirtEntry, mVirtualMapDescriptorSize);
VirtEntry = NEXT_MEMORY_DESCRIPTOR (VirtEntry, mVirtualMapDescriptorSize);
}
return EFI_NOT_FOUND;

View File

@ -84,8 +84,7 @@ typedef struct {
///
/// Build macros to find next EFI_MEMORY_DESCRIPTOR.
///
#define NextMemoryDescriptor(_Ptr, _Size) ((EFI_MEMORY_DESCRIPTOR *) (((UINT8 *) (_Ptr)) + (_Size)))
#define NEXT_MEMORY_DESCRIPTOR(_Ptr, _Size) NextMemoryDescriptor (_Ptr, _Size)
#define NEXT_MEMORY_DESCRIPTOR(_Ptr, _Size) ((EFI_MEMORY_DESCRIPTOR *) (((UINT8 *) (_Ptr)) + (_Size)))
///
/// Declare forward referenced data structures