mirror of https://github.com/acidanthera/audk.git
MdePkg: fix mixed dos and linux EOL format issue
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hot Tian <hot.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16553 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
736a692e7c
commit
e4b0415d59
|
@ -184,30 +184,30 @@ BuildModuleHob (
|
||||||
IN EFI_PHYSICAL_ADDRESS EntryPoint
|
IN EFI_PHYSICAL_ADDRESS EntryPoint
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
||||||
|
|
||||||
This function builds a HOB that describes a chunk of system memory.
|
This function builds a HOB that describes a chunk of system memory.
|
||||||
It can only be invoked during PEI phase;
|
It can only be invoked during PEI phase;
|
||||||
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
||||||
|
|
||||||
If there is no additional space for HOB creation, then ASSERT().
|
If there is no additional space for HOB creation, then ASSERT().
|
||||||
|
|
||||||
@param ResourceType The type of resource described by this HOB.
|
@param ResourceType The type of resource described by this HOB.
|
||||||
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
||||||
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
||||||
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
||||||
@param OwnerGUID GUID for the owner of this resource.
|
@param OwnerGUID GUID for the owner of this resource.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BuildResourceDescriptorWithOwnerHob (
|
BuildResourceDescriptorWithOwnerHob (
|
||||||
IN EFI_RESOURCE_TYPE ResourceType,
|
IN EFI_RESOURCE_TYPE ResourceType,
|
||||||
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
||||||
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
||||||
IN UINT64 NumberOfBytes,
|
IN UINT64 NumberOfBytes,
|
||||||
IN EFI_GUID *OwnerGUID
|
IN EFI_GUID *OwnerGUID
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -239,32 +239,32 @@ BuildModuleHob (
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
||||||
|
|
||||||
This function builds a HOB that describes a chunk of system memory.
|
This function builds a HOB that describes a chunk of system memory.
|
||||||
It can only be invoked during PEI phase;
|
It can only be invoked during PEI phase;
|
||||||
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
||||||
|
|
||||||
If there is no additional space for HOB creation, then ASSERT().
|
If there is no additional space for HOB creation, then ASSERT().
|
||||||
|
|
||||||
@param ResourceType The type of resource described by this HOB.
|
@param ResourceType The type of resource described by this HOB.
|
||||||
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
||||||
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
||||||
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
||||||
@param OwnerGUID GUID for the owner of this resource.
|
@param OwnerGUID GUID for the owner of this resource.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BuildResourceDescriptorWithOwnerHob (
|
BuildResourceDescriptorWithOwnerHob (
|
||||||
IN EFI_RESOURCE_TYPE ResourceType,
|
IN EFI_RESOURCE_TYPE ResourceType,
|
||||||
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
||||||
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
||||||
IN UINT64 NumberOfBytes,
|
IN UINT64 NumberOfBytes,
|
||||||
IN EFI_GUID *OwnerGUID
|
IN EFI_GUID *OwnerGUID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// PEI HOB is read only for DXE phase
|
// PEI HOB is read only for DXE phase
|
||||||
//
|
//
|
||||||
|
|
|
@ -272,32 +272,32 @@ BuildModuleHob (
|
||||||
ASSERT (FALSE);
|
ASSERT (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
||||||
|
|
||||||
This function builds a HOB that describes a chunk of system memory.
|
This function builds a HOB that describes a chunk of system memory.
|
||||||
It can only be invoked during PEI phase;
|
It can only be invoked during PEI phase;
|
||||||
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
||||||
|
|
||||||
If there is no additional space for HOB creation, then ASSERT().
|
If there is no additional space for HOB creation, then ASSERT().
|
||||||
|
|
||||||
@param ResourceType The type of resource described by this HOB.
|
@param ResourceType The type of resource described by this HOB.
|
||||||
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
||||||
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
||||||
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
||||||
@param OwnerGUID GUID for the owner of this resource.
|
@param OwnerGUID GUID for the owner of this resource.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BuildResourceDescriptorWithOwnerHob (
|
BuildResourceDescriptorWithOwnerHob (
|
||||||
IN EFI_RESOURCE_TYPE ResourceType,
|
IN EFI_RESOURCE_TYPE ResourceType,
|
||||||
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
||||||
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
||||||
IN UINT64 NumberOfBytes,
|
IN UINT64 NumberOfBytes,
|
||||||
IN EFI_GUID *OwnerGUID
|
IN EFI_GUID *OwnerGUID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// PEI HOB is read only for DXE phase
|
// PEI HOB is read only for DXE phase
|
||||||
//
|
//
|
||||||
|
|
|
@ -300,45 +300,45 @@ BuildModuleHob (
|
||||||
Hob->EntryPoint = EntryPoint;
|
Hob->EntryPoint = EntryPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
Builds a HOB that describes a chunk of system memory with Owner GUID.
|
||||||
|
|
||||||
This function builds a HOB that describes a chunk of system memory.
|
This function builds a HOB that describes a chunk of system memory.
|
||||||
It can only be invoked during PEI phase;
|
It can only be invoked during PEI phase;
|
||||||
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
for DXE phase, it will ASSERT() since PEI HOB is read-only for DXE phase.
|
||||||
|
|
||||||
If there is no additional space for HOB creation, then ASSERT().
|
If there is no additional space for HOB creation, then ASSERT().
|
||||||
|
|
||||||
@param ResourceType The type of resource described by this HOB.
|
@param ResourceType The type of resource described by this HOB.
|
||||||
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
@param ResourceAttribute The resource attributes of the memory described by this HOB.
|
||||||
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
@param PhysicalStart The 64 bit physical address of memory described by this HOB.
|
||||||
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
@param NumberOfBytes The length of the memory described by this HOB in bytes.
|
||||||
@param OwnerGUID GUID for the owner of this resource.
|
@param OwnerGUID GUID for the owner of this resource.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BuildResourceDescriptorWithOwnerHob (
|
BuildResourceDescriptorWithOwnerHob (
|
||||||
IN EFI_RESOURCE_TYPE ResourceType,
|
IN EFI_RESOURCE_TYPE ResourceType,
|
||||||
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
||||||
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
||||||
IN UINT64 NumberOfBytes,
|
IN UINT64 NumberOfBytes,
|
||||||
IN EFI_GUID *OwnerGUID
|
IN EFI_GUID *OwnerGUID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
EFI_HOB_RESOURCE_DESCRIPTOR *Hob;
|
EFI_HOB_RESOURCE_DESCRIPTOR *Hob;
|
||||||
|
|
||||||
Hob = InternalPeiCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, (UINT16) sizeof (EFI_HOB_RESOURCE_DESCRIPTOR));
|
Hob = InternalPeiCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, (UINT16) sizeof (EFI_HOB_RESOURCE_DESCRIPTOR));
|
||||||
if (Hob == NULL) {
|
if (Hob == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Hob->ResourceType = ResourceType;
|
Hob->ResourceType = ResourceType;
|
||||||
Hob->ResourceAttribute = ResourceAttribute;
|
Hob->ResourceAttribute = ResourceAttribute;
|
||||||
Hob->PhysicalStart = PhysicalStart;
|
Hob->PhysicalStart = PhysicalStart;
|
||||||
Hob->ResourceLength = NumberOfBytes;
|
Hob->ResourceLength = NumberOfBytes;
|
||||||
|
|
||||||
CopyGuid (&Hob->Owner, OwnerGUID);
|
CopyGuid (&Hob->Owner, OwnerGUID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue