commit | 64070205b8df99059fc7e4550cc65839eb45f74e | [log] [tgz] |
---|---|---|
author | Wang Haoran <Haoran.Wang@freescale.com> | Thu Aug 25 16:42:40 2016 +0800 |
committer | haoran Wang <Haoran.Wang@freescale.com> | Tue Aug 30 00:52:33 2016 +0000 |
tree | 2227ce06a90af6f5365e373a5a47916e350a7937 | |
parent | 5251264e70da1d2f3eb262a5cd2a230c7edea9d0 [diff] |
[lib][sm] Use r3 in SWITCH_SCR_TO_NONSECURE before return to ns Since r4 will be used as variable in NS world by some compiler. In this situation the r4 will be changed by SWITCH_SCR_TO_NONSECURE to be 0x05 before return to NS world. So that it will pollute the NS variabe environment. Use r3 in this process of SWITCH_SCR_TO_NONSECURE will fix the bug. Change-Id: Ic95c0a5c365c792da7593bc28f450c2040447ac5 Signed-off-by: Wang Haoran <Haoran.Wang@freescale.com>