diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-31 01:39:20 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-31 01:39:20 +0000 |
commit | ca3ad58bfa2284f0dc98ec904423e83874a90f52 (patch) | |
tree | 3364593eac0b30da55804c13a990e0b85842dfa7 /EmbeddedPkg/Library/PrePiLib | |
parent | 3370d33e8d95ecc964847e102d711abb09d8bcbe (diff) | |
download | edk2-platforms-ca3ad58bfa2284f0dc98ec904423e83874a90f52.tar.xz |
Updated to support passing PE/COFF and LZMA decompress up via HOBS. Currently turned off.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9887 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Library/PrePiLib')
-rw-r--r-- | EmbeddedPkg/Library/PrePiLib/Hob.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/EmbeddedPkg/Library/PrePiLib/Hob.c b/EmbeddedPkg/Library/PrePiLib/Hob.c index 04b49bb044..d055314915 100644 --- a/EmbeddedPkg/Library/PrePiLib/Hob.c +++ b/EmbeddedPkg/Library/PrePiLib/Hob.c @@ -818,11 +818,11 @@ BuildExtractSectionHob ( IN EXTRACT_GUIDED_SECTION_DECODE_HANDLER SectionExtraction ) { - EXTRACT_SECTION_HOB Hob; + EXTRACT_SECTION_DATA Data; - Hob.SectionGetInfo = SectionGetInfo; - Hob.SectionExtraction = SectionExtraction; - BuildGuidDataHob (Guid, &Hob, sizeof (EXTRACT_SECTION_HOB)); + Data.SectionGetInfo = SectionGetInfo; + Data.SectionExtraction = SectionExtraction; + BuildGuidDataHob (Guid, &Data, sizeof (Data)); } PE_COFF_LOADER_PROTOCOL gPeCoffProtocol = { @@ -834,22 +834,18 @@ PE_COFF_LOADER_PROTOCOL gPeCoffProtocol = { PeCoffLoaderUnloadImage }; -typedef struct { - EFI_HOB_GUID_TYPE Hob; - VOID *Interface; -} PROTOCOL_HOB; - VOID EFIAPI BuildPeCoffLoaderHob ( + VOID ) { - PROTOCOL_HOB Hob; + VOID *Ptr; - Hob.Interface = &gPeCoffProtocol; - BuildGuidDataHob (&gPeCoffLoaderProtocolGuid, &Hob, sizeof (PROTOCOL_HOB)); + Ptr = &gPeCoffProtocol; + BuildGuidDataHob (&gPeCoffLoaderProtocolGuid, &Ptr, sizeof (VOID *)); } |