mirror of https://github.com/acidanthera/audk.git
Synchronized Macro definition of GET_GUID_HOB_DATA_SIZE, GET_GUID_HOB_DATA, END_OF_HOB_LIST, GET_NEXT_HOB, GET_HOB_LENGTH, GET_HOB_TYPE with Spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6861 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
cc4aa4644e
commit
6cf18cdd9b
|
@ -425,7 +425,6 @@ BuildMemoryAllocationHob (
|
||||||
@return HobType
|
@return HobType
|
||||||
|
|
||||||
**/
|
**/
|
||||||
//#define GET_HOB_TYPE(Hob) ((Hob).Header->HobType)
|
|
||||||
#define GET_HOB_TYPE(HobStart) \
|
#define GET_HOB_TYPE(HobStart) \
|
||||||
((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobType)
|
((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobType)
|
||||||
|
|
||||||
|
@ -440,7 +439,6 @@ BuildMemoryAllocationHob (
|
||||||
@return HobLength
|
@return HobLength
|
||||||
|
|
||||||
**/
|
**/
|
||||||
//#define GET_HOB_LENGTH(Hob) ((Hob).Header->HobLength)
|
|
||||||
#define GET_HOB_LENGTH(HobStart) \
|
#define GET_HOB_LENGTH(HobStart) \
|
||||||
((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobLength)
|
((*(EFI_HOB_GENERIC_HEADER **)&(HobStart))->HobLength)
|
||||||
|
|
||||||
|
@ -455,7 +453,6 @@ BuildMemoryAllocationHob (
|
||||||
@return A pointer to the next HOB in the HOB list.
|
@return A pointer to the next HOB in the HOB list.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
//#define GET_NEXT_HOB(Hob) ((Hob).Raw + GET_HOB_LENGTH (Hob))
|
|
||||||
#define GET_NEXT_HOB(HobStart) \
|
#define GET_NEXT_HOB(HobStart) \
|
||||||
(VOID *)(*(UINT8 **)&(HobStart) + GET_HOB_LENGTH (HobStart))
|
(VOID *)(*(UINT8 **)&(HobStart) + GET_HOB_LENGTH (HobStart))
|
||||||
|
|
||||||
|
@ -485,7 +482,6 @@ BuildMemoryAllocationHob (
|
||||||
@return A pointer to the data buffer in a HOB
|
@return A pointer to the data buffer in a HOB
|
||||||
|
|
||||||
**/
|
**/
|
||||||
//#define GET_GUID_HOB_DATA(GuidHob) ((VOID *) (((UINT8 *) &((GuidHob)->Name)) + sizeof (EFI_GUID)))
|
|
||||||
#define GET_GUID_HOB_DATA(HobStart) \
|
#define GET_GUID_HOB_DATA(HobStart) \
|
||||||
(VOID *)(*(UINT8 **)&(HobStart) + sizeof (EFI_HOB_GUID_TYPE))
|
(VOID *)(*(UINT8 **)&(HobStart) + sizeof (EFI_HOB_GUID_TYPE))
|
||||||
|
|
||||||
|
@ -499,7 +495,6 @@ BuildMemoryAllocationHob (
|
||||||
|
|
||||||
@return The size of the data buffer
|
@return The size of the data buffer
|
||||||
**/
|
**/
|
||||||
//#define GET_GUID_HOB_DATA_SIZE(GuidHob) (((GuidHob)->Header).HobLength - sizeof (EFI_HOB_GUID_TYPE))
|
|
||||||
#define GET_GUID_HOB_DATA_SIZE(HobStart) \
|
#define GET_GUID_HOB_DATA_SIZE(HobStart) \
|
||||||
(UINT16)(GET_HOB_LENGTH (HobStart) - sizeof (EFI_HOB_GUID_TYPE))
|
(UINT16)(GET_HOB_LENGTH (HobStart) - sizeof (EFI_HOB_GUID_TYPE))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue