SPM: Initialize SP args as expected by cm library
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Mon, 11 Jun 2018 10:01:54 +0000 (11:01 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 13 Jun 2018 08:19:41 +0000 (09:19 +0100)
commit83a393ba3e15a8198520247a25e61c5c04c89ead
treed3aa4263dfd1b42bb77f18e9edd6142ba0ca56d7
parent42be6fc57e4f543a6a5a79f3a3d13192fb346fe2
SPM: Initialize SP args as expected by cm library

In the context management library, cm_setup_context() takes the
information in ep_info to fill the registers x0-x7. This patch replaces
the current code that sets them manually by the correct initialization
code.

Change-Id: Id1fdf4681b154026c2e3af1f9b05b19582b7d16d
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
services/std_svc/spm/sp_setup.c