SPM: FFM API implementation executes in Thread Mode

Prior to this patch, only isolation level 1 supports working in
Thread Mode, and now all isolation levels support it. Working in
Thread Mode could reduce the non-preemptable execution period and
then provide a faster interrupt response.

- Construct Thread mode FFM API required context and use EXC_RETURN
  to run into FFM API implementation in Thread Mode.
- Scheme for returning from FFM API is similar - another SVC code
  for returning.

Signed-off-by: Chendi Sun <chendi.sun@arm.com>
Change-Id: I431458be9920feedd987661b8e82136c10054274
5 files changed