mirror of https://github.com/acidanthera/audk.git
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:
parent
2f3d6fb515
commit
43025b293f
|
@ -1281,7 +1281,7 @@ CoreGetMemoryMap (
|
||||||
MemoryMap->Attribute |= EFI_MEMORY_RUNTIME;
|
MemoryMap->Attribute |= EFI_MEMORY_RUNTIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
MemoryMap = NextMemoryDescriptor (MemoryMap, Size);
|
MemoryMap = NEXT_MEMORY_DESCRIPTOR (MemoryMap, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Link = mGcdMemorySpaceMap.ForwardLink; Link != &mGcdMemorySpaceMap; Link = Link->ForwardLink) {
|
for (Link = mGcdMemorySpaceMap.ForwardLink; Link != &mGcdMemorySpaceMap; Link = Link->ForwardLink) {
|
||||||
|
@ -1308,7 +1308,7 @@ CoreGetMemoryMap (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MemoryMap = NextMemoryDescriptor (MemoryMap, Size);
|
MemoryMap = NEXT_MEMORY_DESCRIPTOR (MemoryMap, Size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@ RuntimeDriverConvertPointer (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VirtEntry = NextMemoryDescriptor (VirtEntry, mVirtualMapDescriptorSize);
|
VirtEntry = NEXT_MEMORY_DESCRIPTOR (VirtEntry, mVirtualMapDescriptorSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
|
|
|
@ -84,8 +84,7 @@ typedef struct {
|
||||||
///
|
///
|
||||||
/// Build macros to find next EFI_MEMORY_DESCRIPTOR.
|
/// Build macros to find next EFI_MEMORY_DESCRIPTOR.
|
||||||
///
|
///
|
||||||
#define NextMemoryDescriptor(_Ptr, _Size) ((EFI_MEMORY_DESCRIPTOR *) (((UINT8 *) (_Ptr)) + (_Size)))
|
#define NEXT_MEMORY_DESCRIPTOR(_Ptr, _Size) ((EFI_MEMORY_DESCRIPTOR *) (((UINT8 *) (_Ptr)) + (_Size)))
|
||||||
#define NEXT_MEMORY_DESCRIPTOR(_Ptr, _Size) NextMemoryDescriptor (_Ptr, _Size)
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Declare forward referenced data structures
|
/// Declare forward referenced data structures
|
||||||
|
|
Loading…
Reference in New Issue