X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BeagleBoardPkg%2FSec%2FSec.c;h=448a713f4d41c475564e0a5fb053ccc1ba12d9fb;hp=5b4d2946dbef39ab7e031d505e0a28779aac552d;hb=ca3ad58bfa2284f0dc98ec904423e83874a90f52;hpb=225290eba733e5ca7149d1789ccce5ef15c38df5 diff --git a/BeagleBoardPkg/Sec/Sec.c b/BeagleBoardPkg/Sec/Sec.c index 5b4d2946db..448a713f4d 100755 --- a/BeagleBoardPkg/Sec/Sec.c +++ b/BeagleBoardPkg/Sec/Sec.c @@ -24,9 +24,11 @@ #include #include - +#include #include +#include "LzmaDecompress.h" + VOID EFIAPI _ModuleEntryPoint( @@ -239,7 +241,7 @@ CEntryPoint ( // #ifdef __CC_ARM // Print out the command for the RVD debugger to load symbols for this image - DEBUG ((EFI_D_ERROR, "load /a /ni /np %a &0x%08x\n", SecDeCygwinPathIfNeeded (FilePath), PeCoffImage + Offset)); + DEBUG ((EFI_D_ERROR, "load /a /ni /np %a &0x%08x\n", SecDeCygwinPathIfNeeded (FilePath), (CHAR8 *)PeCoffImage + Offset)); #elif __GNUC__ // This may not work correctly if you generate PE/COFF directlyas then the Offset would not be required DEBUG ((EFI_D_ERROR, "add-symbol-file %a 0x%08x\n", FilePath, PeCoffImage + Offset)); @@ -260,6 +262,18 @@ CEntryPoint ( ExtractGuidedSectionLibConstructor(); LzmaDecompressLibConstructor(); + // Build HOBs to pass up our version of stuff the DXE Core needs to save space +#if 0 + BuildPeCoffLoaderHob (); + BuildExtractSectionHob ( + &gLzmaCustomDecompressGuid, + LzmaGuidedSectionGetInfo, + LzmaGuidedSectionExtraction + ); +#endif + + DecompressFirstFv (); + // Load the DXE Core and transfer control to it LoadDxeCoreFromFv(NULL, 0);