mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Added PcdEnableUserSpace.
This commit is contained in:
parent
7ad8cac11d
commit
940a7e2074
|
@ -216,6 +216,7 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFwVolDxeMaxEncapsulationDepth ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdImageLargeAddressLoad ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableUserSpace ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDebugRaisePropertyMask ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdImageProtectionPolicy ## CONSUMES
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase ## CONSUMES
|
||||
|
|
|
@ -236,14 +236,19 @@ ProtectUefiImage (
|
|||
//
|
||||
// CPU ARCH present. Update memory attribute directly.
|
||||
//
|
||||
if (AsciiStrStr (PdbPointer, "Fat") != NULL) {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, TRUE);
|
||||
*IsUserImage = TRUE;
|
||||
} else if (AsciiStrStr (PdbPointer, "Ring3") != NULL) {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, TRUE);
|
||||
*IsUserImage = TRUE;
|
||||
*IsRing3EntryPoint = TRUE;
|
||||
} else {
|
||||
if (PcdGetBool (PcdEnableUserSpace)) {
|
||||
if (AsciiStrStr (PdbPointer, "Fat") != NULL) {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, TRUE);
|
||||
*IsUserImage = TRUE;
|
||||
} else if (AsciiStrStr (PdbPointer, "Ring3") != NULL) {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, TRUE);
|
||||
*IsUserImage = TRUE;
|
||||
*IsRing3EntryPoint = TRUE;
|
||||
} else {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, FALSE);
|
||||
*IsUserImage = FALSE;
|
||||
}
|
||||
} else {
|
||||
SetUefiImageProtectionAttributes (ImageRecord, FALSE);
|
||||
*IsUserImage = FALSE;
|
||||
}
|
||||
|
|
|
@ -1156,6 +1156,12 @@
|
|||
# @Prompt Delay access XHCI register after it issues HCRST (us)
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDelayXhciHCReset|2000|UINT16|0x30001060
|
||||
|
||||
## 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|0x30001061
|
||||
|
||||
[PcdsFixedAtBuild, PcdsPatchableInModule]
|
||||
## Dynamic type PCD can be registered callback function for Pcd setting action.
|
||||
# PcdMaxPeiPcdCallBackNumberPerPcdEntry indicates the maximum number of callback function
|
||||
|
|
|
@ -622,6 +622,7 @@
|
|||
gEfiMdePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000003
|
||||
!endif
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableUserSpace|TRUE
|
||||
|
||||
#
|
||||
# Firmware volume supports UE, and may require PE.
|
||||
|
|
Loading…
Reference in New Issue