Nevermind, I figured it out. In case it helps anyone, here is a simple loop
through firmware volumes in DXE...

#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Pi/PiBootMode.h>
#include <Pi/PiHob.h>
#include <Library/HobLib.h>
#include <Guid/HobList.h>

EFI_STATUS
EFIAPI
UefiMain (
  IN  EFI_HANDLE        ImageHandle,
  IN  EFI_SYSTEM_TABLE  *SystemTable
  )
{
  EFI_STATUS               Status = EFI_SUCCESS;
  EFI_HOB_FIRMWARE_VOLUME  *FvHob = NULL;

  FvHob = GetFirstHob (EFI_HOB_TYPE_FV);
  while (FvHob != NULL) {
    Print (L"Address: %x  Length: %d  HobLength: %d\n", FvHob->BaseAddress,
FvHob->Length, FvHob->Header.HobLength);
    FvHob = GetNextHob (EFI_HOB_TYPE_FV, (VOID *) ((UINT8 *) FvHob +
FvHob->Header.HobLength));
  }

  return EFI_SUCCESS;
}


On Wed, Jul 3, 2013 at 12:00 PM, Thomas Rognon <tcrog...@gmail.com> wrote:

> Is there a way to get EFI_SEC_PEI_HAND_OFF in a DXE application? Or more
> specifically, the BootFirmwareVolumeBase and BootFirmwareVolumeSize?
>
> Thanks,
> Thomas Rognon
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to