[edk2-devel] [PATCH v2 06/13] StandaloneMmPkg: Add the SPM version for FF-A

Sughosh Ganu posted 13 patches 5 years, 1 month ago
There is a newer version of this series
[edk2-devel] [PATCH v2 06/13] StandaloneMmPkg: Add the SPM version for FF-A
Posted by Sughosh Ganu 5 years, 1 month ago
The Firmware Framework(FF-A) requires implementation of SPM version
v1.0. Add new macros for the version that will be used for FF-A.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
---
 ArmPkg/Include/IndustryStandard/ArmFfaSvc.h                                             | 3 +++
 StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/ArmPkg/Include/IndustryStandard/ArmFfaSvc.h b/ArmPkg/Include/IndustryStandard/ArmFfaSvc.h
index 1eadf48ab5..bdf6ce4676 100644
--- a/ArmPkg/Include/IndustryStandard/ArmFfaSvc.h
+++ b/ArmPkg/Include/IndustryStandard/ArmFfaSvc.h
@@ -20,4 +20,7 @@
 #define ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ_AARCH64      0xC400006F
 #define ARM_SVC_ID_FFA_MSG_SEND_DIRECT_RESP_AARCH64     0xC4000070
 
+#define SPM_MAJOR_VERSION_FFA                           1
+#define SPM_MINOR_VERSION_FFA                           0
+
 #endif // ARM_FFA_SVC_H_
diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c
index f2a8feacec..093a4a4285 100644
--- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c
+++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c
@@ -35,6 +35,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 CONST UINT32 mSpmMajorVer = SPM_MAJOR_VERSION;
 CONST UINT32 mSpmMinorVer = SPM_MINOR_VERSION;
 
+CONST UINT32 mSpmMajorVerFfa = SPM_MAJOR_VERSION_FFA;
+CONST UINT32 mSpmMinorVerFfa = SPM_MINOR_VERSION_FFA;
+
 CONST UINT8 BOOT_PAYLOAD_VERSION = 1;
 
 PI_MM_ARM_TF_CPU_DRIVER_ENTRYPOINT      CpuDriverEntryPoint = NULL;
-- 
2.17.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#68772): https://edk2.groups.io/g/devel/message/68772
Mute This Topic: https://groups.io/mt/78951502/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH v2 06/13] StandaloneMmPkg: Add the SPM version for FF-A
Posted by Sami Mujawar 5 years, 1 month ago
On Mon, Dec 14, 2020 at 06:42 AM, Sughosh Ganu wrote:

> 
> +CONST UINT32 mSpmMajorVerFfa = SPM_MAJOR_VERSION_FFA;
> +CONST UINT32 mSpmMinorVerFfa = SPM_MINOR_VERSION_FFA;

The STATIC storage class specifier can be used for the above variables.

Regards,

Sami Mujawar


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#69703): https://edk2.groups.io/g/devel/message/69703
Mute This Topic: https://groups.io/mt/78951502/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-