Skip to content

Commit

Permalink
Revert "ArmVirtPkg/ArmVirtQemu: Disable PcdPrePiProduceMemoryTypeInfo…
Browse files Browse the repository at this point in the history
…rmationHob for ARM"

This reverts commit a86d9d6.
  • Loading branch information
Mikhail Krichanov committed Dec 25, 2024
1 parent 68b458c commit f3a86e6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions ArmVirtPkg/ArmVirt.dsc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -282,22 +282,14 @@
[PcdsFeatureFlag.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE

gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE

[PcdsFeatureFlag.AARCH64]
#
# Activate AcpiSdtProtocol
#
gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE

#
# FIXME: The PcdPrePiProduceMemoryTypeInformationHob on ARM breaks Linux efistub boot.
# The efistub for arm32 uncompresses Linux kernel into memory ranges which occupied
# by DXE-phase drivers which leads to 'permission denied'-error during page write.
#
# So as a temporary solution we use PcdPrePiProduceMemoryTypeInformationHob
# only for AARCH64
#
gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE

[PcdsFixedAtBuild.common]
!ifdef $(FIRMWARE_VER)
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
Expand Down

0 comments on commit f3a86e6

Please sign in to comment.