mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-25 18:48:42 +02:00
MdeModulePkg: Fixed code style.
This commit is contained in:
parent
aba1c68ac1
commit
be0b5fc5da
@ -115,7 +115,7 @@ GetMachineTypeName (
|
|||||||
{
|
{
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
|
|
||||||
for (Index = 0; Index < sizeof (mMachineTypeInfo)/sizeof (mMachineTypeInfo[0]); Index++) {
|
for (Index = 0; Index < sizeof (mMachineTypeInfo)/sizeof (mMachineTypeInfo[0]); ++Index) {
|
||||||
if (mMachineTypeInfo[Index].MachineType == MachineType) {
|
if (mMachineTypeInfo[Index].MachineType == MachineType) {
|
||||||
return mMachineTypeInfo[Index].MachineTypeName;
|
return mMachineTypeInfo[Index].MachineTypeName;
|
||||||
}
|
}
|
||||||
@ -415,7 +415,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
|||||||
//
|
//
|
||||||
BaseOffsetPageNumber = EFI_SIZE_TO_PAGES ((UINT32)(ImageBase - DxeCodeBase));
|
BaseOffsetPageNumber = EFI_SIZE_TO_PAGES ((UINT32)(ImageBase - DxeCodeBase));
|
||||||
TopOffsetPageNumber = EFI_SIZE_TO_PAGES ((UINT32)(ImageBase + ImageSize - DxeCodeBase));
|
TopOffsetPageNumber = EFI_SIZE_TO_PAGES ((UINT32)(ImageBase + ImageSize - DxeCodeBase));
|
||||||
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; Index++) {
|
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; ++Index) {
|
||||||
if ((mDxeCodeMemoryRangeUsageBitMap[Index / 64] & LShiftU64 (1, (Index % 64))) != 0) {
|
if ((mDxeCodeMemoryRangeUsageBitMap[Index / 64] & LShiftU64 (1, (Index % 64))) != 0) {
|
||||||
//
|
//
|
||||||
// This page is already used.
|
// This page is already used.
|
||||||
@ -427,7 +427,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
|||||||
//
|
//
|
||||||
// Being here means the memory range is available. So mark the bits for the memory range
|
// Being here means the memory range is available. So mark the bits for the memory range
|
||||||
//
|
//
|
||||||
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; Index++) {
|
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; ++Index) {
|
||||||
mDxeCodeMemoryRangeUsageBitMap[Index / 64] |= LShiftU64 (1, (Index % 64));
|
mDxeCodeMemoryRangeUsageBitMap[Index / 64] |= LShiftU64 (1, (Index % 64));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -945,14 +945,14 @@ CoreUnloadAndCloseImage (
|
|||||||
&HandleBuffer
|
&HandleBuffer
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
for (HandleIndex = 0; HandleIndex < HandleCount; HandleIndex++) {
|
for (HandleIndex = 0; HandleIndex < HandleCount; ++HandleIndex) {
|
||||||
Status = CoreProtocolsPerHandle (
|
Status = CoreProtocolsPerHandle (
|
||||||
HandleBuffer[HandleIndex],
|
HandleBuffer[HandleIndex],
|
||||||
&ProtocolGuidArray,
|
&ProtocolGuidArray,
|
||||||
&ArrayCount
|
&ArrayCount
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
for (ProtocolIndex = 0; ProtocolIndex < ArrayCount; ProtocolIndex++) {
|
for (ProtocolIndex = 0; ProtocolIndex < ArrayCount; ++ProtocolIndex) {
|
||||||
Status = CoreOpenProtocolInformation (
|
Status = CoreOpenProtocolInformation (
|
||||||
HandleBuffer[HandleIndex],
|
HandleBuffer[HandleIndex],
|
||||||
ProtocolGuidArray[ProtocolIndex],
|
ProtocolGuidArray[ProtocolIndex],
|
||||||
@ -960,7 +960,7 @@ CoreUnloadAndCloseImage (
|
|||||||
&OpenInfoCount
|
&OpenInfoCount
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
for (OpenInfoIndex = 0; OpenInfoIndex < OpenInfoCount; OpenInfoIndex++) {
|
for (OpenInfoIndex = 0; OpenInfoIndex < OpenInfoCount; ++OpenInfoIndex) {
|
||||||
if (OpenInfo[OpenInfoIndex].AgentHandle == Image->Handle) {
|
if (OpenInfo[OpenInfoIndex].AgentHandle == Image->Handle) {
|
||||||
Status = CoreCloseProtocol (
|
Status = CoreCloseProtocol (
|
||||||
HandleBuffer[HandleIndex],
|
HandleBuffer[HandleIndex],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user