Fix TSPD implementation of STD SMC ABORT
authorDouglas Raillard <douglas.raillard@arm.com>
Fri, 3 Feb 2017 18:01:51 +0000 (18:01 +0000)
committerDouglas Raillard <douglas.raillard@arm.com>
Thu, 23 Feb 2017 16:04:51 +0000 (16:04 +0000)
commit57a5a56c111cb988e0ee54b57a6b47e5f483dd94
treea3cb7ba0d61161ea96811f3d54bf574c75122ea5
parent93f398205a8ebd2c1cef780251a0d24576ab1b28
Fix TSPD implementation of STD SMC ABORT

ABORT SMC used to return to the previously executing world, which
happened to be S-EL1 as it calls a TSP handler using synchronous entry
into the TSP.

Now properly save and restore the non-secure context (including system
registers) and return to non-secure world as it should.

fixes ARM-Software/tf-issues#453

Change-Id: Ie40c79ca2636ab8b6b2ab3106e8f49e0f9117f5f
Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
services/spd/tspd/tspd_main.c