summaryrefslogtreecommitdiff
path: root/include/services
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-11-30 10:52:09 +0000
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-12-11 15:04:24 +0000
commite23ae073cbba7cf4dcb8a47eb9f4583289e709ba (patch)
treebdb6acb1b1ffe5dd4a5da580fd6a1814d84aac0d /include/services
parent206d2b37839c42593e015883fc62450db33f59fd (diff)
SPM: Migrate mem attr get/set helpers to SPRT
The old SMCs SP_MEMORY_ATTRIBUTES_{GET,SET}_AARCH64 have been removed in favour of SPRT_MEMORY_PERM_ATTR_{GET,SET}_AARCH64. Change-Id: Idb93cfa5461d0098df941037c5653f7c44b65227 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/services')
-rw-r--r--include/services/sprt_svc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/services/sprt_svc.h b/include/services/sprt_svc.h
index ccc4eb3a..b6b51dd4 100644
--- a/include/services/sprt_svc.h
+++ b/include/services/sprt_svc.h
@@ -53,6 +53,15 @@
#define SPRT_MEMORY_PERM_ATTR_GET_AARCH64 SPRT_SMC_64(SPRT_FID_MEMORY_PERM_ATTR_GET)
#define SPRT_MEMORY_PERM_ATTR_SET_AARCH64 SPRT_SMC_64(SPRT_FID_MEMORY_PERM_ATTR_SET)
+/* Defines used by SPRT_MEMORY_PERM_ATTR_{GET,SET}_AARCH64 */
+
+#define SPRT_MEMORY_PERM_ATTR_RO U(0)
+#define SPRT_MEMORY_PERM_ATTR_RW U(1)
+#define SPRT_MEMORY_PERM_ATTR_RO_EXEC U(2)
+/* U(3) is reserved */
+#define SPRT_MEMORY_PERM_ATTR_MASK U(3)
+#define SPRT_MEMORY_PERM_ATTR_SHIFT 3
+
/* SPRT error codes. */
#define SPRT_SUCCESS 0