提交 28176920 编写于 作者: X Xiongfeng Wang 提交者: Chen Jun

ilp32: skip ARM erratum 1418040 for ilp32 application

hulk inclusion
category: feature
bugzilla: 46790
CVE: NA

--------------------------------

ARM erratum 1418040 only affect AARCH32. ILP32 is not affected.
Signed-off-by: NXiongfeng Wang <wangxiongfeng2@hauwei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
上级 d3a61dd6
...@@ -524,8 +524,8 @@ static void erratum_1418040_thread_switch(struct task_struct *prev, ...@@ -524,8 +524,8 @@ static void erratum_1418040_thread_switch(struct task_struct *prev,
if (!IS_ENABLED(CONFIG_ARM64_ERRATUM_1418040)) if (!IS_ENABLED(CONFIG_ARM64_ERRATUM_1418040))
return; return;
prev32 = is_compat_thread(task_thread_info(prev)); prev32 = is_a32_compat_thread(task_thread_info(prev));
next32 = is_compat_thread(task_thread_info(next)); next32 = is_a32_compat_thread(task_thread_info(next));
if (prev32 == next32 || !this_cpu_has_cap(ARM64_WORKAROUND_1418040)) if (prev32 == next32 || !this_cpu_has_cap(ARM64_WORKAROUND_1418040))
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册