mirror of https://github.com/acidanthera/audk.git
StandaloneMmPkg: Allow sending FFA Direct Request message to StandaloneMm
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> Acked-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
1262c02677
commit
68e5ecc4d2
|
@ -22,6 +22,7 @@
|
||||||
#include <Guid/ZeroGuid.h>
|
#include <Guid/ZeroGuid.h>
|
||||||
#include <Guid/MmramMemoryReserve.h>
|
#include <Guid/MmramMemoryReserve.h>
|
||||||
|
|
||||||
|
#include <IndustryStandard/ArmFfaSvc.h>
|
||||||
#include <IndustryStandard/ArmStdSmc.h>
|
#include <IndustryStandard/ArmStdSmc.h>
|
||||||
|
|
||||||
#include "StandaloneMmCpu.h"
|
#include "StandaloneMmCpu.h"
|
||||||
|
@ -91,7 +92,8 @@ PiMmStandaloneArmTfCpuDriverEntry (
|
||||||
// receipt of a synchronous MM request. Use the Event ID to distinguish
|
// receipt of a synchronous MM request. Use the Event ID to distinguish
|
||||||
// between synchronous and asynchronous events.
|
// 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));
|
DEBUG ((DEBUG_INFO, "UnRecognized Event - 0x%x\n", EventId));
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue