File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -651,7 +651,7 @@ static int parse_user_sigframe(struct user_ctxs *user,
651
651
break ;
652
652
653
653
case TPIDR2_MAGIC :
654
- if (!system_supports_sme ())
654
+ if (!system_supports_tpidr2 ())
655
655
goto invalid ;
656
656
657
657
if (user -> tpidr2 )
@@ -802,7 +802,7 @@ static int restore_sigframe(struct pt_regs *regs,
802
802
err = restore_fpsimd_context (& user );
803
803
}
804
804
805
- if (err == 0 && system_supports_sme () && user .tpidr2 )
805
+ if (err == 0 && system_supports_tpidr2 () && user .tpidr2 )
806
806
err = restore_tpidr2_context (& user );
807
807
808
808
if (err == 0 && system_supports_sme () && user .za )
@@ -974,7 +974,7 @@ static int setup_sigframe(struct rt_sigframe_user_layout *user,
974
974
}
975
975
976
976
/* TPIDR2 if supported */
977
- if (system_supports_sme () && err == 0 ) {
977
+ if (system_supports_tpidr2 () && err == 0 ) {
978
978
struct tpidr2_context __user * tpidr2_ctx =
979
979
apply_user_offset (user , user -> tpidr2_offset );
980
980
err |= preserve_tpidr2_context (tpidr2_ctx );
You can’t perform that action at this time.
0 commit comments