diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2020-10-08 12:50:44 +0530 |
---|---|---|
committer | Sughosh Ganu <sughosh.ganu@linaro.org> | 2021-01-21 12:13:24 +0530 |
commit | 3d0816ec23bee640a225a209b67a9226c62b274c (patch) | |
tree | 05d1a749e9e8d936db380c5929b0305275d416c5 | |
parent | f7d11773e6c473f08a355b402effffd3536dffd2 (diff) |
StandaloneMmPkg: Allow sending FFA Direct Request message to StandaloneMmqemu_secure_storage_on_upstream
Allow passing of a request to StandaloneMm Core through the Firmware
Framework(FF-A) using FFA_MSG_SEND_DIRECT_REQ method. This method is
used as a mechanism for requesting some service from StandaloneMm.
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
-rw-r--r-- | StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c index d86d21bb01..63fbe26642 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c @@ -22,6 +22,7 @@ #include <Guid/ZeroGuid.h>
#include <Guid/MmramMemoryReserve.h>
+#include <IndustryStandard/ArmFfaSvc.h>
#include <IndustryStandard/ArmStdSmc.h>
#include "StandaloneMmCpu.h"
@@ -91,7 +92,8 @@ PiMmStandaloneArmTfCpuDriverEntry ( // receipt of a synchronous MM request. Use the Event ID to distinguish
// between synchronous and asynchronous events.
//
- if (ARM_SMC_ID_MM_COMMUNICATE_AARCH64 != EventId) {
+ if ((ARM_SMC_ID_MM_COMMUNICATE_AARCH64 != EventId) &&
+ (ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ_AARCH64 != EventId)) {
DEBUG ((DEBUG_INFO, "UnRecognized Event - 0x%x\n", EventId));
return EFI_INVALID_PARAMETER;
}
|