+STATIC\r
+VOID\r
+EFIAPI\r
+OnReadyToBoot (\r
+ EFI_EVENT Event,\r
+ VOID *Context\r
+ )\r
+{\r
+ EFI_STATUS Status;\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, mDeviceTreeBase);\r
+ ASSERT_EFI_ERROR (Status);\r
+ }\r
+\r
+ gBS->CloseEvent (Event);\r
+}\r
+\r
+STATIC EFI_EVENT mReadyToBootEvent;\r
+\r