]> git.proxmox.com Git - mirror_edk2.git/commit
StandaloneMmPkg: Fix check buffer address failed issue from TF-A
authorMing Huang <huangming@linux.alibaba.com>
Fri, 31 Dec 2021 11:06:23 +0000 (19:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jul 2022 10:20:06 +0000 (10:20 +0000)
commit5496c763aaddc4a47639d4652abe23aa3419263a
tree3679d11154b6c9bff282b0580337903f33f890ef
parent31d3eeb103eaf0721c4955988bef3f2264b05ca0
StandaloneMmPkg: Fix check buffer address failed issue from TF-A

There are two scene communicate with StandaloneMm(MM):
1 edk2 -> TF-A -> MM, communicate MM use non-secure buffer which
  specify by EFI_SECURE_PARTITION_BOOT_INFO.SpNsCommBufBase;
2 RAS scene: fiq -> TF-A -> MM, use secure buffer which
  specify by EFI_SECURE_PARTITION_BOOT_INFO.SpShareBufBase;

For now, the second scene will failed because check buffer address.
This patch add CheckBufferAddr() to support check address for secure
buffer.

Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
StandaloneMmPkg/Drivers/StandaloneMmCpu/EventHandle.c
StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.c
StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.h