[FOSS_TLK]platform: tegra: merge the preempted_by_irq/fs SMCs
authorVarun Wadekar <vwadekar@nvidia.com>
Mon, 5 Jan 2015 06:12:42 +0000 (11:12 +0530)
committerDennis Huang <denhuang@nvidia.com>
Tue, 16 Jun 2015 20:55:04 +0000 (13:55 -0700)
commit46924d1475b8779b6eca2ac0b8f48cfc51c9ecbc
treee6faadd967adb8009f92b7d62120b874c8c9b964
parentfaae7bacc8642280f8314a819fba2170be16d39c
[FOSS_TLK]platform: tegra: merge the preempted_by_irq/fs SMCs

Instead of maintaining two different SMCs for the "preempted" scenario,
we can make use of a common SMC_TOS_PREEMPTED. The error code in the
frame pointer is all that the NS world needs to differentiate between
scenarios. We store this error code before restoring the NS world
context and pass it as the error code in r0. This way the entire
mechanism becomes scalable.

Change-Id: I7eba10e14effca774fa37e2c26a3e1753032035c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/715771
Reviewed-by: Automatic_Commit_Validation_User
arch/arm/arm/monitor_vectors.S
include/lib/monitor/monitor_vector.h
platform/tegra/common/interrupts.c
platform/tegra/common/platform.c