Commit 62d862eb authored by Varun Wadekar's avatar Varun Wadekar
Browse files

spd: tlkd: support for "NS memory ranges" function ID



This patch adds support to receive function ID with NS world's
memory ranges to provide the memory snapshot to TLK.
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
parent 77796fb7
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
*/ */
#define TLK_REGISTER_LOGBUF TLK_TOS_YIELD_FID(0x1) #define TLK_REGISTER_LOGBUF TLK_TOS_YIELD_FID(0x1)
#define TLK_REGISTER_REQBUF TLK_TOS_YIELD_FID(0x2) #define TLK_REGISTER_REQBUF TLK_TOS_YIELD_FID(0x2)
#define TLK_REGISTER_NS_DRAM TLK_TOS_YIELD_FID(0x4)
#define TLK_RESUME_FID TLK_TOS_YIELD_FID(0x100) #define TLK_RESUME_FID TLK_TOS_YIELD_FID(0x100)
#define TLK_SYSTEM_SUSPEND TLK_TOS_YIELD_FID(0xE001) #define TLK_SYSTEM_SUSPEND TLK_TOS_YIELD_FID(0xE001)
#define TLK_SYSTEM_RESUME TLK_TOS_YIELD_FID(0xE002) #define TLK_SYSTEM_RESUME TLK_TOS_YIELD_FID(0xE002)
......
/* /*
* Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -193,12 +193,14 @@ uint64_t tlkd_smc_handler(uint32_t smc_fid, ...@@ -193,12 +193,14 @@ uint64_t tlkd_smc_handler(uint32_t smc_fid,
* b. register shared memory with the SP for passing args * b. register shared memory with the SP for passing args
* required for maintaining sessions with the Trusted * required for maintaining sessions with the Trusted
* Applications. * Applications.
* c. open/close sessions * c. register non-secure world's memory map with the OS
* d. issue commands to the Trusted Apps * d. open/close sessions
* e. resume the preempted yielding SMC call. * e. issue commands to the Trusted Apps
* f. resume the preempted yielding SMC call.
*/ */
case TLK_REGISTER_LOGBUF: case TLK_REGISTER_LOGBUF:
case TLK_REGISTER_REQBUF: case TLK_REGISTER_REQBUF:
case TLK_REGISTER_NS_DRAM:
case TLK_OPEN_TA_SESSION: case TLK_OPEN_TA_SESSION:
case TLK_CLOSE_TA_SESSION: case TLK_CLOSE_TA_SESSION:
case TLK_TA_LAUNCH_OP: case TLK_TA_LAUNCH_OP:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment