[Common] Fix Osloader hang when HAVE_ACPI_TABLE=0

Verified on EHL

Signed-off-by: Randy Lin <randy.lin@intel.com>
This commit is contained in:
Randy Lin 2022-08-31 15:58:47 +08:00 committed by Guo Dong
parent 073e8a9147
commit f641779277
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@
#include <Library/BaseMemoryLib.h>
#include <Library/PayloadLib.h>
#include <Library/BootloaderCommonLib.h>
#include <Library/BootloaderCoreLib.h>
#include <Library/LoaderPerformanceLib.h>
#include <Library/PayloadMemoryAllocationLib.h>
#include <Library/SerialPortLib.h>
@ -272,7 +273,7 @@ SecStartup (
// ACPI table
SystemTableInfo = GetSystemTableInfo ();
if (SystemTableInfo != NULL) {
if (SystemTableInfo != NULL && ACPI_ENABLED()) {
ParseAcpiTableInfo ((UINT32)SystemTableInfo->AcpiTableBase);
}

View File

@ -26,6 +26,7 @@
MdePkg/MdePkg.dec
BootloaderCommonPkg/BootloaderCommonPkg.dec
PayloadPkg/PayloadPkg.dec
BootloaderCorePkg/BootloaderCorePkg.dec
[LibraryClasses]
BaseLib
@ -40,6 +41,7 @@
DebugLogBufferLib
DebugPrintErrorLevelLib
PagingLib
BootloaderCoreLib
[Guids]
gLoaderLibraryDataGuid
@ -59,3 +61,4 @@
gPlatformCommonLibTokenSpaceGuid.PcdDmaProtectionEnabled
gPlatformCommonLibTokenSpaceGuid.PcdDmaBufferSize
gPlatformCommonLibTokenSpaceGuid.PcdDmaBufferAlignment
gPlatformModuleTokenSpaceGuid.PcdAcpiEnabled