Restore PAuth context in case of unknown SMC call
authorAlexei Fedorov <Alexei.Fedorov@arm.com>
Mon, 18 Mar 2019 15:59:34 +0000 (15:59 +0000)
committerAlexei Fedorov <Alexei.Fedorov@arm.com>
Mon, 18 Mar 2019 16:02:16 +0000 (16:02 +0000)
Change-Id: I8fb346743b7afddbb8bf5908db4f27ee5a26f99b
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
bl31/aarch64/runtime_exceptions.S

index aa9d0079bea99bd589ecc0f9198cef1604847de1..c295176835f40a80bcac12711803b5d806833e21 100644 (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: