Merge pull request #1901 from AlexeiFedorov/af/restore_pauth_context_smc

Restore PAuth context in case of unknown SMC call
This commit is contained in:
Dimitris Papastamos 2019-03-20 11:17:33 +00:00 committed by GitHub
commit 5e5c77dbe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: