]> git.proxmox.com Git - mirror_edk2.git/commit - StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
StandaloneMM: Update permissions for Standalone MM drivers memory area
authorSughosh Ganu <sughosh.ganu@arm.com>
Mon, 3 Dec 2018 07:19:02 +0000 (12:49 +0530)
committerAchin Gupta <achin.gupta@arm.com>
Sun, 9 Dec 2018 16:01:53 +0000 (16:01 +0000)
commitf7f94ffe88283e331caff0cab2dee753acbc02d2
tree8d068cd4cb463cd07f3c5b33c620de78b1cd9db0
parent34b1d7eafee06f6c7534afd1daa20dc3e33cb57f
StandaloneMM: Update permissions for Standalone MM drivers memory area

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>
StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/AArch64/StandaloneMmPeCoffExtraActionLib.c [new file with mode: 0644]
StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf [new file with mode: 0644]