mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
MdeModulePkg: Added PcdEnableUserSpace.
This commit is contained in:
parent
046dcae0e7
commit
13706cfb07
@ -217,6 +217,7 @@
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFwVolDxeMaxEncapsulationDepth ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdImageLargeAddressLoad ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableUserSpace ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDebugRaisePropertyMask ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdImageProtectionPolicy ## CONSUMES
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase ## CONSUMES
|
||||
|
@ -236,6 +236,7 @@ ProtectUefiImage (
|
||||
//
|
||||
// CPU ARCH present. Update memory attribute directly.
|
||||
//
|
||||
if (PcdGetBool (PcdEnableUserSpace)) {
|
||||
if (AsciiStrStr (PdbPointer, "Fat") != NULL) {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, TRUE);
|
||||
*IsUserImage = TRUE;
|
||||
@ -247,6 +248,10 @@ ProtectUefiImage (
|
||||
SetUefiImageProtectionAttributes (ImageRecord, FALSE);
|
||||
*IsUserImage = FALSE;
|
||||
}
|
||||
} else {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, FALSE);
|
||||
*IsUserImage = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Finish:
|
||||
|
@ -1204,6 +1204,12 @@
|
||||
# @Prompt Defines the page allocation for the MM communication buffer; default is 128 pages (512KB).
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMmCommBufferPages|128|UINT32|0x30001061
|
||||
|
||||
## Indicates whether some DXE drivers will be loaded in user memory.
|
||||
# TRUE - Some DXE drivers will be loaded in user memory.<BR>
|
||||
# FALSE - All DXE drivers will be loaded in supervisor memory.<BR>
|
||||
# @Prompt Enable User Space.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableUserSpace|FALSE|BOOLEAN|0x30001062
|
||||
|
||||
[PcdsFixedAtBuild, PcdsPatchableInModule]
|
||||
## Dynamic type PCD can be registered callback function for Pcd setting action.
|
||||
# PcdMaxPeiPcdCallBackNumberPerPcdEntry indicates the maximum number of callback function
|
||||
|
@ -628,6 +628,7 @@
|
||||
gEfiMdePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000003
|
||||
!endif
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableUserSpace|TRUE
|
||||
|
||||
#
|
||||
# Firmware volume supports UE, and may require PE.
|
||||
|
Loading…
x
Reference in New Issue
Block a user