The StandaloneMM image executes in S-EL0 on reference Arm platforms and is deployed by the trusted firmware as BL32 image. Memory for the Standalone MM drivers is marked as RW+XN initially, allowing the drivers to be loaded into the memory. Once loaded, the memory attributes need to be changed to RO+XN for rodata sections and RO+X for code sections. Achieve this through the extra action 'UpdatePeCoffPermissions' to request the privileged firmware in EL3 to update the permissions. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sughosh Ganu <sughosh.ganu@arm.com> Reviewed-by: Achin Gupta <achin.gupta@arm.com>
46 lines
1.5 KiB
INI
46 lines
1.5 KiB
INI
#/** @file
|
|
# PeCoff extra action libary for DXE phase that run Unix emulator.
|
|
#
|
|
# Lib to provide memory journal status code reporting Routines
|
|
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
|
|
# Portions copyright (c) 2010, Apple Inc. All rights reserved.<BR>
|
|
# This program and the accompanying materials
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
#
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
#
|
|
#**/
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x0001000A
|
|
BASE_NAME = StandaloneMmPeCoffExtraActionLib
|
|
FILE_GUID = 8B40543B-9588-48F8-840C-5A60E6DB1B03
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = PeCoffExtraActionLib
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = ARM
|
|
#
|
|
|
|
[Sources.common]
|
|
AArch64/StandaloneMmPeCoffExtraActionLib.c
|
|
|
|
[Packages]
|
|
ArmPkg/ArmPkg.dec
|
|
MdePkg/MdePkg.dec
|
|
StandaloneMmPkg/StandaloneMmPkg.dec
|
|
|
|
[FeaturePcd]
|
|
gStandaloneMmPkgTokenSpaceGuid.PcdStandaloneMmEnable
|
|
|
|
[LibraryClasses]
|
|
StandaloneMmMmuLib
|
|
PcdLib
|