mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 20:54:29 +02:00
ArmVirtPkg/ArmVirtQemu: Disable PcdPrePiProduceMemoryTypeInformationHob for ARM
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 Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
parent
a0180c022a
commit
a86d9d688e
@ -282,14 +282,22 @@
|
|||||||
[PcdsFeatureFlag.common]
|
[PcdsFeatureFlag.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
|
||||||
|
|
||||||
gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
|
|
||||||
|
|
||||||
[PcdsFeatureFlag.AARCH64]
|
[PcdsFeatureFlag.AARCH64]
|
||||||
#
|
#
|
||||||
# Activate AcpiSdtProtocol
|
# Activate AcpiSdtProtocol
|
||||||
#
|
#
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
|
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]
|
[PcdsFixedAtBuild.common]
|
||||||
!ifdef $(FIRMWARE_VER)
|
!ifdef $(FIRMWARE_VER)
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user