aboutsummaryrefslogtreecommitdiff
path: root/common/bl_common.c
diff options
context:
space:
mode:
authorAchin Gupta <achin.gupta@arm.com>2014-02-09 23:11:46 +0000
committerDan Handley <dan.handley@arm.com>2014-02-20 19:06:34 +0000
commit916a2c1ec16eed4199f27a24b8e2985275cda423 (patch)
treee324c9fffa85fda4e2394bc98d3adc47f84cb2e2 /common/bl_common.c
parent607084ee4c2a7c20832beb8cd1d5cebf02b2cb26 (diff)
downloadarm-trusted-firmware-916a2c1ec16eed4199f27a24b8e2985275cda423.tar.gz
Rework arithmetic operations in Test Secure Payload
This patch reworks the service provided by the TSP to perform common arithmetic operations on a set of arguments provided by the non-secure world. For a addition, division, subtraction & multiplication operation requested on two arguments in x0 and x1 the steps are: 1. TSPD saves the non-secure context and passes the operation and its arguments to the TSP. 2. TSP asks the TSPD to return the same arguments once again. This exercises an additional SMC path. 3. TSP now has two copies of both x0 and x1. It performs the operation on the corresponding copies i.e. in case of addition it returns x0+x0 and x1+x1. 4. TSPD receives the result, saves the secure context, restores the non-secure context and passes the result back to the non-secure client. Change-Id: I6eebfa2ae0a6f28b1d2e11a31f575c7a4b96724b Co-authored-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
Diffstat (limited to 'common/bl_common.c')
0 files changed, 0 insertions, 0 deletions