#include <Library/HobLib.h>\r
#include <libfdt.h>\r
\r
+#include <Guid/Fdt.h>\r
#include <Guid/FdtHob.h>\r
\r
#include <Protocol/FdtClient.h>\r
{\r
VOID *Hob;\r
VOID *DeviceTreeBase;\r
+ EFI_STATUS Status;\r
\r
Hob = GetFirstGuidHob (&gFdtHobGuid);\r
if (Hob == NULL || GET_GUID_HOB_DATA_SIZE (Hob) != sizeof (UINT64)) {\r
\r
DEBUG ((EFI_D_INFO, "%a: DTB @ 0x%p\n", __FUNCTION__, mDeviceTreeBase));\r
\r
+ if (!FeaturePcdGet (PcdPureAcpiBoot)) {\r
+ //\r
+ // Only install the FDT as a configuration table if we want to leave it up\r
+ // to the OS to decide whether it prefers ACPI over DT.\r
+ //\r
+ Status = gBS->InstallConfigurationTable (&gFdtTableGuid, DeviceTreeBase);\r
+ ASSERT_EFI_ERROR (Status);\r
+ }\r
+\r
return gBS->InstallProtocolInterface (&ImageHandle, &gFdtClientProtocolGuid,\r
EFI_NATIVE_INTERFACE, &mFdtClientProtocol);\r
}\r
#include <libfdt.h>\r
#include <Library/XenIoMmioLib.h>\r
\r
-#include <Guid/Fdt.h>\r
#include <Guid/VirtioMmioTransport.h>\r
#include <Guid/FdtHob.h>\r
\r
}\r
}\r
\r
- if (!FeaturePcdGet (PcdPureAcpiBoot)) {\r
- //\r
- // Only install the FDT as a configuration table if we want to leave it up\r
- // to the OS to decide whether it prefers ACPI over DT.\r
- //\r
- Status = gBS->InstallConfigurationTable (&gFdtTableGuid, DeviceTreeBase);\r
- ASSERT_EFI_ERROR (Status);\r
- }\r
-\r
return EFI_SUCCESS;\r
}\r