Revision: 16553
http://sourceforge.net/p/edk2/code/16553
Author: hhtian
Date: 2014-12-23 08:33:49 +0000 (Tue, 23 Dec 2014)
Log Message:
-----------
MdePkg: fix mixed dos and linux EOL format issue
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hot Tian <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdePkg/Include/Library/HobLib.h
trunk/edk2/MdePkg/Library/DxeCoreHobLib/HobLib.c
trunk/edk2/MdePkg/Library/DxeHobLib/HobLib.c
trunk/edk2/MdePkg/Library/PeiHobLib/HobLib.c
Modified: trunk/edk2/MdePkg/Include/Library/HobLib.h
===================================================================
--- trunk/edk2/MdePkg/Include/Library/HobLib.h 2014-12-23 08:33:06 UTC (rev
16552)
+++ trunk/edk2/MdePkg/Include/Library/HobLib.h 2014-12-23 08:33:49 UTC (rev
16553)
@@ -184,30 +184,30 @@
IN EFI_PHYSICAL_ADDRESS EntryPoint
);
-/**
+/**
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.
- It can only be invoked during PEI 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().
-
- @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
+
+ This function builds a HOB that describes a chunk of system memory.
+ It can only be invoked during PEI 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().
+
+ @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
@param OwnerGUID GUID for the owner of this resource.
-
-**/
-VOID
-EFIAPI
-BuildResourceDescriptorWithOwnerHob (
- IN EFI_RESOURCE_TYPE ResourceType,
- IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
- IN EFI_PHYSICAL_ADDRESS PhysicalStart,
- IN UINT64 NumberOfBytes,
- IN EFI_GUID *OwnerGUID
+
+**/
+VOID
+EFIAPI
+BuildResourceDescriptorWithOwnerHob (
+ IN EFI_RESOURCE_TYPE ResourceType,
+ IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
+ IN EFI_PHYSICAL_ADDRESS PhysicalStart,
+ IN UINT64 NumberOfBytes,
+ IN EFI_GUID *OwnerGUID
);
/**
Modified: trunk/edk2/MdePkg/Library/DxeCoreHobLib/HobLib.c
===================================================================
--- trunk/edk2/MdePkg/Library/DxeCoreHobLib/HobLib.c 2014-12-23 08:33:06 UTC
(rev 16552)
+++ trunk/edk2/MdePkg/Library/DxeCoreHobLib/HobLib.c 2014-12-23 08:33:49 UTC
(rev 16553)
@@ -239,32 +239,32 @@
ASSERT (FALSE);
}
-/**
+/**
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.
- It can only be invoked during PEI 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().
-
- @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
+
+ This function builds a HOB that describes a chunk of system memory.
+ It can only be invoked during PEI 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().
+
+ @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
@param OwnerGUID GUID for the owner of this resource.
-
-**/
-VOID
-EFIAPI
-BuildResourceDescriptorWithOwnerHob (
- IN EFI_RESOURCE_TYPE ResourceType,
- IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
- IN EFI_PHYSICAL_ADDRESS PhysicalStart,
- IN UINT64 NumberOfBytes,
- IN EFI_GUID *OwnerGUID
- )
-{
+
+**/
+VOID
+EFIAPI
+BuildResourceDescriptorWithOwnerHob (
+ IN EFI_RESOURCE_TYPE ResourceType,
+ IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
+ IN EFI_PHYSICAL_ADDRESS PhysicalStart,
+ IN UINT64 NumberOfBytes,
+ IN EFI_GUID *OwnerGUID
+ )
+{
//
// PEI HOB is read only for DXE phase
//
Modified: trunk/edk2/MdePkg/Library/DxeHobLib/HobLib.c
===================================================================
--- trunk/edk2/MdePkg/Library/DxeHobLib/HobLib.c 2014-12-23 08:33:06 UTC
(rev 16552)
+++ trunk/edk2/MdePkg/Library/DxeHobLib/HobLib.c 2014-12-23 08:33:49 UTC
(rev 16553)
@@ -272,32 +272,32 @@
ASSERT (FALSE);
}
-/**
+/**
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.
- It can only be invoked during PEI 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().
-
- @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
+
+ This function builds a HOB that describes a chunk of system memory.
+ It can only be invoked during PEI 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().
+
+ @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
@param OwnerGUID GUID for the owner of this resource.
-
-**/
-VOID
-EFIAPI
-BuildResourceDescriptorWithOwnerHob (
- IN EFI_RESOURCE_TYPE ResourceType,
- IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
- IN EFI_PHYSICAL_ADDRESS PhysicalStart,
- IN UINT64 NumberOfBytes,
- IN EFI_GUID *OwnerGUID
- )
-{
+
+**/
+VOID
+EFIAPI
+BuildResourceDescriptorWithOwnerHob (
+ IN EFI_RESOURCE_TYPE ResourceType,
+ IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
+ IN EFI_PHYSICAL_ADDRESS PhysicalStart,
+ IN UINT64 NumberOfBytes,
+ IN EFI_GUID *OwnerGUID
+ )
+{
//
// PEI HOB is read only for DXE phase
//
Modified: trunk/edk2/MdePkg/Library/PeiHobLib/HobLib.c
===================================================================
--- trunk/edk2/MdePkg/Library/PeiHobLib/HobLib.c 2014-12-23 08:33:06 UTC
(rev 16552)
+++ trunk/edk2/MdePkg/Library/PeiHobLib/HobLib.c 2014-12-23 08:33:49 UTC
(rev 16553)
@@ -300,45 +300,45 @@
Hob->EntryPoint = EntryPoint;
}
-/**
+/**
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.
- It can only be invoked during PEI 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().
-
- @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
+
+ This function builds a HOB that describes a chunk of system memory.
+ It can only be invoked during PEI 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().
+
+ @param ResourceType The type of resource 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 NumberOfBytes The length of the memory described by this HOB
in bytes.
@param OwnerGUID GUID for the owner of this resource.
-
-**/
-VOID
-EFIAPI
-BuildResourceDescriptorWithOwnerHob (
- IN EFI_RESOURCE_TYPE ResourceType,
- IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
- IN EFI_PHYSICAL_ADDRESS PhysicalStart,
- IN UINT64 NumberOfBytes,
- IN EFI_GUID *OwnerGUID
- )
-{
- EFI_HOB_RESOURCE_DESCRIPTOR *Hob;
+**/
+VOID
+EFIAPI
+BuildResourceDescriptorWithOwnerHob (
+ IN EFI_RESOURCE_TYPE ResourceType,
+ IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
+ IN EFI_PHYSICAL_ADDRESS PhysicalStart,
+ IN UINT64 NumberOfBytes,
+ IN EFI_GUID *OwnerGUID
+ )
+{
+ EFI_HOB_RESOURCE_DESCRIPTOR *Hob;
+
Hob = InternalPeiCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, (UINT16)
sizeof (EFI_HOB_RESOURCE_DESCRIPTOR));
if (Hob == NULL) {
return;
}
-
- Hob->ResourceType = ResourceType;
- Hob->ResourceAttribute = ResourceAttribute;
- Hob->PhysicalStart = PhysicalStart;
- Hob->ResourceLength = NumberOfBytes;
-
- CopyGuid (&Hob->Owner, OwnerGUID);
+
+ Hob->ResourceType = ResourceType;
+ Hob->ResourceAttribute = ResourceAttribute;
+ Hob->PhysicalStart = PhysicalStart;
+ Hob->ResourceLength = NumberOfBytes;
+
+ CopyGuid (&Hob->Owner, OwnerGUID);
}
/**
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits