summaryrefslogtreecommitdiff
path: root/include/bl32
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2015-03-13 14:19:11 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2015-03-31 10:06:15 +0530
commit77199df7bceba229a8a2f9b8473088f969737d85 (patch)
tree529ad624c4001da3d8ff9d52e6840ab0e8098bdf /include/bl32
parent220383153c582b8b1d26b21ab2f240143a0558f5 (diff)
Register NS shared memory for SP's activity logs and TA sessions
This patch registers NS memory buffer with the secure payload using two different functions IDs - REGISTER_LOGBUF, REGISTER_REQBUF. a. The SP uses the log-buffer to store its activity logs, in a pre-decided format. This helps in debugging secure payload's issues. b. The SP uses the req-buffer to get the parameters required by sessions with Trusted Applications. Change-Id: I6b0247cf7790524132ee0da24f1f35b1fccec5d5 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'include/bl32')
-rw-r--r--include/bl32/payloads/tlk.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/bl32/payloads/tlk.h b/include/bl32/payloads/tlk.h
index d9fa7949..b6299a8b 100644
--- a/include/bl32/payloads/tlk.h
+++ b/include/bl32/payloads/tlk.h
@@ -32,9 +32,21 @@
#define __TLK_H__
/*
+ * Generate function IDs for the Trusted OS/Apps
+ */
+#define TLK_TOS_STD_FID(fid) ((fid) | 0x72000000 | (0 << 31))
+
+/*
+ * Trusted OS specific function IDs
+ */
+#define TLK_REGISTER_LOGBUF TLK_TOS_STD_FID(0x1)
+#define TLK_REGISTER_REQBUF TLK_TOS_STD_FID(0x2)
+
+/*
* SMC function IDs that TLK uses to signal various forms of completions
* to the secure payload dispatcher.
*/
+#define TLK_REQUEST_DONE (0x32000001 | (1 << 31))
#define TLK_ENTRY_DONE (0x32000003 | (1 << 31))
#define TLK_FID_SHARED_MEMBUF (0x32000005 | (1 << 31))