Restore PAuth context in case of unknown SMC call

Change-Id: I8fb346743b7afddbb8bf5908db4f27ee5a26f99b
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
This commit is contained in:
Alexei Fedorov 2019-03-18 15:59:34 +00:00
parent 73050e6970
commit 317d68e9de
1 changed files with 3 additions and 0 deletions

View File

@ -419,6 +419,9 @@ smc_unknown:
*/
mov x0, #SMC_UNK
str x0, [sp, #CTX_GPREGS_OFFSET + CTX_GPREG_X0]
#if CTX_INCLUDE_PAUTH_REGS
bl pauth_context_save
#endif
b restore_gp_registers_eret
smc_prohibited: